mingw32 build: various fixes

This commit is contained in:
Alon Levy 2010-12-06 18:02:01 +02:00
parent abdf4ad91c
commit f359b264ae

View File

@ -471,7 +471,7 @@ static void copy_bitmap_alpha(const uint8_t *src_alpha, int height, int width, i
alphaval = src_alpha[i];
alphaval = alphaval >> (i_count * i_offset);
alphaval = alphaval &= ((uint8_t)0xff >> (8 - i_offset));
alphaval &= ((uint8_t)0xff >> (8 - i_offset));
alphaval = ((255 * alphaval) / ((uint8_t)0xff >> (8 - i_offset)));
dest_bitmap[x * 4 + 3] = alphaval;
@ -637,7 +637,7 @@ static HBRUSH get_brush(GdiCanvas *canvas, SpiceBrush *brush, RecurciveMutex **b
case SPICE_BRUSH_TYPE_PATTERN: {
GdiCanvas *gdi_surface = NULL;
HBRUSH hbrush;
pixman_image_t *surface;
pixman_image_t *surface = NULL;
HDC dc;
HBITMAP bitmap;
HBITMAP prev_bitmap;