X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftest.c;h=459d26621b4fa4376a03c07d6c6e54908d52f96a;hb=ddb5d43edc8bb35dadaa83fc3b516a43c1674cc9;hp=114819af75aa8d089564c5e41d8d48b84deb5fee;hpb=f8a47de5ec444c452093371e3db16857eb39a490;p=chaz%2Fopenbox diff --git a/render/test.c b/render/test.c index 114819af..459d2662 100644 --- a/render/test.c +++ b/render/test.c @@ -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; }