From 10f6d90f16835d0c534dca69fa8c32be37b53b8d Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 23 Mar 2019 13:43:37 +0100 Subject: Eliminate some warnings --- imagemagickwrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imagemagickwrapper.c') diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c index 753b678..6198dfc 100644 --- a/imagemagickwrapper.c +++ b/imagemagickwrapper.c @@ -145,7 +145,7 @@ void cImageMagickWrapper::CreateGradient(tColor back, tColor blend, int width, i for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { PixelPacket *pixel = pixels + y * width + x; - int opacity = (maxw / width * x + maxh - maxh / height * y) / 2; + unsigned int opacity = (maxw / width * x + maxh - maxh / height * y) / 2; pixel->opacity = (opacity <= MaxRGB) ? opacity : MaxRGB; } } @@ -159,4 +159,4 @@ void cImageMagickWrapper::CreateGradient(tColor back, tColor blend, int width, i void cImageMagickWrapper::CreateBackground(tColor back, tColor blend, int width, int height) { CreateGradient(back, blend, width, height, 0.8, 0.8); -} \ No newline at end of file +} -- cgit v1.2.3