projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.21.tar.gz
[xscreensaver]
/
utils
/
colorbars.c
diff --git
a/utils/colorbars.c
b/utils/colorbars.c
index 3243c0b9d7b17de7c1afc4bac5f5f64a16d32c10..61e001201ceb6ece91066c319c7e2dccb967dbb8 100644
(file)
--- a/
utils/colorbars.c
+++ b/
utils/colorbars.c
@@
-119,14
+119,14
@@
draw_colorbars (Screen *screen, Visual *visual,
{
Window root;
unsigned int logo_width, logo_height;
{
Window root;
unsigned int logo_width, logo_height;
-
unsigned
int w = width;
-
unsigned
int h = height * heights[0] / 100;
+ int w = width;
+ 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);
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;
- y1 = y + (h - logo_height) / 2;
+ x1 = x + (w -
(int)
logo_width) / 2;
+ y1 = y + (h -
(int)
logo_height) / 2;
if (logo_mask)
{
XSetClipMask (dpy, gc, logo_mask);
if (logo_mask)
{
XSetClipMask (dpy, gc, logo_mask);