mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 22:55:35 +00:00
mingw32 build: various fixes
This commit is contained in:
parent
abdf4ad91c
commit
f359b264ae
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user