summaryrefslogtreecommitdiff
path: root/imagemagickwrapper.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-05 15:19:58 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-12 14:00:56 +0200
commitd3cddf3ccdc8a02157971822abeed65eec851346 (patch)
tree7d57bcfc4156cd66581d3cc64f175579972b4aa1 /imagemagickwrapper.c
parentf836d7aa18b562faa32871d3f4e8a5e1d45c6982 (diff)
downloadskin-nopacity-d3cddf3ccdc8a02157971822abeed65eec851346.tar.gz
skin-nopacity-d3cddf3ccdc8a02157971822abeed65eec851346.tar.bz2
unsigned int is enough
In these cases we do not need a "long unsigned int"
Diffstat (limited to 'imagemagickwrapper.c')
-rw-r--r--imagemagickwrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c
index 6f14ba4..ac10fba 100644
--- a/imagemagickwrapper.c
+++ b/imagemagickwrapper.c
@@ -139,7 +139,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;
- long unsigned 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;
}
}