X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fcolorbars.c;h=3243c0b9d7b17de7c1afc4bac5f5f64a16d32c10;hp=cf4fd92d7a2fcd5b6c686a9660c1ea1e57921f7c;hb=6a1da724858673ac40aa13a9612340d8bed8c7b9;hpb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930 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;