 (defn- display-size
   "Returns size of screen. If there are 2 or more screens it probably return size of
   default one whatever it means."
+  ([]
+   (let [bounds (.. (java.awt.GraphicsEnvironment/getLocalGraphicsEnvironment)
+                    getDefaultScreenDevice
+                    getDefaultConfiguration
+                    getBounds)]
+     [(.-width bounds) (.-height bounds)]))
+
   ([display]
    (if-let [bounds (some->
                     (get (.getScreenDevices (GraphicsEnvironment/getLocalGraphicsEnvironment)) display)

                      options
                      (safe-fns options))

        display           (or (:display options) 0)

        options           (merge (dissoc options :features)
                                 features)

        size              (process-size (:size options) display)
        title             (or (:title options) (str "Quil " (swap! untitled-applet-id* inc)))
        renderer          (or (:renderer options) :java2d)
        draw-fn           (or (:draw options) no-fn)

  (PApplet/runSketch
   (into-array String
               (vec (filter string?
                            [(when (:display (meta applet))
                               (str "--display=" (:display (meta applet))))
                             (when (and (:bgcolor (meta applet))
                                        (:present (meta applet)))
                               (str "--bgcolor" "=" (str (:bgcolor (meta applet)))))
