diff options
author | louis <louis.braun@gmx.de> | 2013-11-26 17:07:17 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-26 17:07:17 +0100 |
commit | 8af28d3a9dcb7dfd9c90ef523952c1d0e74652c4 (patch) | |
tree | bd5b8dd475f74c6aaa98c5263f8a30c129d08dfd /imagemagickwrapper.c | |
parent | f7995bc496cccef8afa69b9ddbe2583b25baa93c (diff) | |
download | skin-nopacity-8af28d3a9dcb7dfd9c90ef523952c1d0e74652c4.tar.gz skin-nopacity-8af28d3a9dcb7dfd9c90ef523952c1d0e74652c4.tar.bz2 |
fixed a compile error if imagemagick is build with DMAGICKCORE_QUANTUM_DEPTH=16
Diffstat (limited to 'imagemagickwrapper.c')
-rw-r--r-- | imagemagickwrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c index 0660a69..93a7706 100644 --- a/imagemagickwrapper.c +++ b/imagemagickwrapper.c @@ -37,7 +37,7 @@ cImage *cImageMagickWrapper::CreateImage(int width, int height, bool preserveAsp scaler.PutSourcePixel(pixels->blue / ((MaxRGB + 1) / 256), pixels->green / ((MaxRGB + 1) / 256), pixels->red / ((MaxRGB + 1) / 256), - ~(pixels->opacity / ((MaxRGB + 1) / 256))); + ~((unsigned char)(pixels->opacity / ((MaxRGB + 1) / 256)))); return image; } for (const void *pixels_end = &pixels[width*height]; pixels < pixels_end; ++pixels) |