summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compositor/compositor-xrender.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index b4d571f2..c90cdd4a 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -833,10 +833,10 @@ solid_picture (MetaDisplay *display,
return None;
}
- c.alpha = a * 0xffff;
- c.red = r * 0xffff;
- c.green = g * 0xffff;
- c.blue = b * 0xffff;
+ c.alpha = (unsigned short)(a * 0xffff);
+ c.red = (unsigned short)(r * 0xffff);
+ c.green = (unsigned short)(g * 0xffff);
+ c.blue = (unsigned short)(b * 0xffff);
XRenderFillRectangle (xdisplay, PictOpSrc, picture, &c, 0, 0, 1, 1);
XFreePixmap (xdisplay, pixmap);