summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-08-10 22:03:17 +0200
committerraveit65 <[email protected]>2020-09-03 15:48:17 +0200
commit3e64dccc5a4195e3fab8bf59b97e990c3732b396 (patch)
tree79c7e8686e6db66087e32abd5d06109c26a6e41c /src
parent939c009ded49576d60785da8abba89fdb1471bc2 (diff)
downloadmarco-3e64dccc5a4195e3fab8bf59b97e990c3732b396.tar.bz2
marco-3e64dccc5a4195e3fab8bf59b97e990c3732b396.tar.xz
compositor-xrender: Remove float-conversion warning
Diffstat (limited to 'src')
-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);