]> Dogcows Code - chaz/openbox/commitdiff
more changes wrt passing x, y, w, h to render
authorDerek Foreman <manmower@gmail.com>
Mon, 17 Mar 2003 04:53:36 +0000 (04:53 +0000)
committerDerek Foreman <manmower@gmail.com>
Mon, 17 Mar 2003 04:53:36 +0000 (04:53 +0000)
render/render.h
render/test.c

index e0cf1ed8c72c6be3488d49644dd3cd4a698d34e3..9cd1bd7379ad6e1e3d72acb6c0ad5af264de04d0 100644 (file)
@@ -158,7 +158,7 @@ void (*paint)(Window win, Appearance *l, int x, int y, int w, int h);
 
 void render_startup(void);
 void init_appearance(Appearance *l);
-void x_paint(Window win, Appearance *l, int w, int h);
+void x_paint(Window win, Appearance *l, int x, int y, int w, int h);
 void render_shutdown(void);
 Appearance *appearance_new(SurfaceType type, int numtex);
 Appearance *appearance_copy(Appearance *a);
index 114819af75aa8d089564c5e41d8d48b84deb5fee..b42f553d5365bc964dec0932ac0a3e952205f02e 100644 (file)
@@ -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.026477 seconds and 4 git commands to generate.