diff options
author | Thomas Günther <tom@toms-cafe.de> | 2009-06-21 19:52:50 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-06-21 19:52:50 +0200 |
commit | 3f84caa2968902dba6c733502111b55bcc432a61 (patch) | |
tree | b0e13a2ff9080f3c0f07c17695007eb98f56b12d /bitmap.c | |
parent | ea25399458d35ca25e3477200baa1b393a577b37 (diff) | |
download | vdr-plugin-text2skin-3f84caa2968902dba6c733502111b55bcc432a61.tar.gz vdr-plugin-text2skin-3f84caa2968902dba6c733502111b55bcc432a61.tar.bz2 |
Fixed compile error if ImageMagick has double as Quantum type (closes #140)
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ bool cText2SkinBitmap::LoadMagick(const char *Filename, int height, int width, i const PixelPacket *pix = (*it).getConstPixels(0, 0, w, h); for (int iy = 0; iy < h; ++iy) { for (int ix = 0; ix < w; ++ix) { - tColor col = (~(pix->opacity * 255 / MaxRGB) << 24) | ((pix->red * 255 / MaxRGB) << 16) | ((pix->green * 255 / MaxRGB) << 8) | (pix->blue * 255 / MaxRGB); + tColor col = (~int(pix->opacity * 255 / MaxRGB) << 24) | (int(pix->red * 255 / MaxRGB) << 16) | (int(pix->green * 255 / MaxRGB) << 8) | int(pix->blue * 255 / MaxRGB); bmp->DrawPixel(ix, iy, col); ++pix; } |