diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-06 18:02:01 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-08 17:13:08 +0200 |
commit | 916863202a5c7708f7ec27e1905aab7d4999a527 (patch) | |
tree | 2c2b82fdba804eca903ab1936d2d3cfcf1fa362a /common | |
parent | ff3fb423ed1e60dc5124e1211613c56555b6cdce (diff) | |
download | spice-916863202a5c7708f7ec27e1905aab7d4999a527.tar.gz spice-916863202a5c7708f7ec27e1905aab7d4999a527.tar.xz spice-916863202a5c7708f7ec27e1905aab7d4999a527.zip |
mingw32 build: various fixes
Diffstat (limited to 'common')
-rw-r--r-- | common/gdi_canvas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index 705a0402..d57aafcb 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; |