From 3e64dccc5a4195e3fab8bf59b97e990c3732b396 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 10 Aug 2020 22:03:17 +0200 Subject: compositor-xrender: Remove float-conversion warning --- src/compositor/compositor-xrender.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.1