summaryrefslogtreecommitdiff
path: root/imageloader.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-03-23 13:43:37 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-03-23 15:42:41 +0100
commit10f6d90f16835d0c534dca69fa8c32be37b53b8d (patch)
tree86ba9d454c2f41974f5da3befa4f37b91b40256d /imageloader.c
parent168973331cae4a6709d36fbedd590fa79e79aaf1 (diff)
downloadvdr-plugin-tvguide-10f6d90f16835d0c534dca69fa8c32be37b53b8d.tar.gz
vdr-plugin-tvguide-10f6d90f16835d0c534dca69fa8c32be37b53b8d.tar.bz2
Eliminate some warnings
Diffstat (limited to 'imageloader.c')
-rw-r--r--imageloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imageloader.c b/imageloader.c
index 6ca5d69..67b910c 100644
--- a/imageloader.c
+++ b/imageloader.c
@@ -173,7 +173,7 @@ void cImageLoader::CreateGradient(tColor back, tColor blend, int width, int heig
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;
}
}
@@ -183,4 +183,4 @@ void cImageLoader::CreateGradient(tColor back, tColor blend, int width, int heig
imgback.composite(imgblend, 0, 0, OverCompositeOp);
buffer = imgback;
-} \ No newline at end of file
+}