From 3f84caa2968902dba6c733502111b55bcc432a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Sun, 21 Jun 2009 19:52:50 +0200 Subject: Fixed compile error if ImageMagick has double as Quantum type (closes #140) --- bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitmap.c') diff --git a/bitmap.c b/bitmap.c index 60f95d7..3fd0115 100644 --- a/bitmap.c +++ b/bitmap.c @@ -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; } -- cgit v1.2.3