]> gitweb.factorcode.org Git - factor.git/commitdiff
spheres can use MAIN-WINDOW: too
authorJoe Groff <arcata@gmail.com>
Sat, 16 Jan 2010 18:46:23 +0000 (10:46 -0800)
committerJoe Groff <arcata@gmail.com>
Sat, 16 Jan 2010 18:46:23 +0000 (10:46 -0800)
extra/spheres/spheres.factor

index b7431caef8663821743e240b9a26b07ba5931ac3..de969e47b63a520cfd20672a1d8a54039a2676b4 100644 (file)
@@ -299,17 +299,12 @@ M: spheres-world draw-world*
         ]
     } cleave ;
 
-: spheres-window ( -- )
-    [
-        f T{ world-attributes
-            { world-class spheres-world }
-            { title "Spheres" }
-            { pixel-format-attributes {
-                windowed
-                double-buffered
-                T{ depth-bits { value 16 } }
-            } }
-        } open-window
-    ] with-ui ;
-
-MAIN: spheres-window
+MAIN-WINDOW: spheres-window {
+        { world-class spheres-world }
+        { title "Spheres" }
+        { pixel-format-attributes {
+            windowed
+            double-buffered
+            T{ depth-bits { value 16 } }
+        } }
+    } ;