From: Derek Foreman Date: Mon, 17 Mar 2003 04:53:36 +0000 (+0000) Subject: more changes wrt passing x, y, w, h to render X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ab68bcfb1e93daa41131174ac998548a183b5395;p=chaz%2Fopenbox more changes wrt passing x, y, w, h to render --- diff --git a/render/render.h b/render/render.h index e0cf1ed8..9cd1bd73 100644 --- a/render/render.h +++ b/render/render.h @@ -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); diff --git a/render/test.c b/render/test.c index 114819af..b42f553d 100644 --- a/render/test.c +++ b/render/test.c @@ -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; }