X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fcolorbars.c;h=3243c0b9d7b17de7c1afc4bac5f5f64a16d32c10;hb=96a411663168b0ba5432b407a83be55f3df0c802;hp=cf4fd92d7a2fcd5b6c686a9660c1ea1e57921f7c;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;p=xscreensaver diff --git a/utils/colorbars.c b/utils/colorbars.c index cf4fd92d..3243c0b9 100644 --- a/utils/colorbars.c +++ b/utils/colorbars.c @@ -70,7 +70,10 @@ draw_colorbars (Screen *screen, Visual *visual, int xx, yy; unsigned int bw, d; XGetGeometry (dpy, drawable, - &root, &xx, &yy, &width, &height, &bw, &d); + &root, &xx, &yy, + (unsigned int *) &width, + (unsigned int *) &height, + &bw, &d); } for (j = 0; j < sizeof(colors) / sizeof(*colors); j++) @@ -115,10 +118,11 @@ draw_colorbars (Screen *screen, Visual *visual, if (logo_map) { Window root; - int logo_width, logo_height; - int w = width; - int h = height * heights[0] / 100; - int x1, y1, bw, d; + unsigned int logo_width, logo_height; + unsigned int w = width; + unsigned int h = height * heights[0] / 100; + int x1, y1; + unsigned int bw, d; XGetGeometry (dpy, logo_map, &root, &x1, &y1, &logo_width, &logo_height, &bw, &d); x1 = x + (w - logo_width) / 2;