]> Dogcows Code - chaz/openbox/blobdiff - render/test.c
add strict ansi compliance
[chaz/openbox] / render / test.c
index 114819af75aa8d089564c5e41d8d48b84deb5fee..459d26621b4fa4376a03c07d6c6e54908d52f96a 100644 (file)
@@ -41,11 +41,11 @@ int main()
        win =
            XCreateWindow(ob_display, RootWindow(ob_display, 0)
                           , 10, 10, w, h, 10, 
-                          CopyFromParent,      // depth
-                         CopyFromParent,       // class
-                         CopyFromParent,       // visual
-                         0,    // valuemask
-                         0);   // attributes
+                          CopyFromParent,      /* depth */
+                         CopyFromParent,       /* class */
+                         CopyFromParent,       /* visual */
+                         0,                    /* valuemask */
+                         0);                   /* attributes */
        XMapWindow(ob_display, win);
        XSelectInput(ob_display, win, ExposureMask | StructureNotifyMask);
        root = RootWindow (ob_display, DefaultScreen (ob_display));
@@ -61,7 +61,7 @@ int main()
                return 0;
        }
 
-       paint(win, look, 500, 500);
+       paint(win, look, 0, 0, 500, 500);
        while (1) {
                XNextEvent(ob_display, &report);
                switch (report.type) {
@@ -70,7 +70,7 @@ int main()
                case ConfigureNotify:
                        w = report.xconfigure.width;
                        h = report.xconfigure.height;
-                       paint(win, look, w, h);
+                       paint(win, look, 0, 0, w, h);
                        printf("confignotify %i:%i\n", w, h);
                break;
                }
This page took 0.02203 seconds and 4 git commands to generate.