diff options
| author | bball <bball@octorok.org> | 2009-01-29 11:04:43 -0800 |
|---|---|---|
| committer | bball <bball@octorok.org> | 2009-01-29 11:04:43 -0800 |
| commit | 7e91df967dbca3fde9697ac4f53f70d498f9e371 (patch) | |
| tree | 68bd45718f2639c61f8244c135ba678bd3afa27d | |
| parent | fae9cc04c10572bdb687a0207a20c85ea1aa51b1 (diff) | |
| download | vdr-plugin-yaepghd-7e91df967dbca3fde9697ac4f53f70d498f9e371.tar.gz vdr-plugin-yaepghd-7e91df967dbca3fde9697ac4f53f70d498f9e371.tar.bz2 | |
- Added (int) casts for compile time error.
| -rw-r--r-- | yaepghd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -562,9 +562,9 @@ cYaepgTheme::LoadImage(char *Filename) const Magick::PixelPacket *pix = images[0].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) | + tColor col = (~(int)(pix->opacity * 255 / MaxRGB) << 24) | + ((int)(pix->red * 255 / MaxRGB) << 16) | + ((int)(pix->green * 255 / MaxRGB) << 8) | (pix->blue * 255 / MaxRGB); bmp->DrawPixel(ix, iy, col); ++pix; |
