From c309d923aa9cd84a94bf865a1765d6ee3b330d55 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 6 Dec 2010 18:02:01 +0200 Subject: mingw32 build: various fixes --- common/gdi_canvas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/gdi_canvas.c') diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index 705a040..d57aafc 100644 --- a/common/gdi_canvas.c +++ b/common/gdi_canvas.c @@ -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; -- cgit