bug 647560 followup - put the color components in the right order. a=test-bustage

This commit is contained in:
Jonathan Kew 2011-06-17 09:14:09 +01:00
parent 1d4ff1c480
commit 85a01c345d

View File

@ -1503,8 +1503,8 @@ _cairo_win32_surface_fill_rectangles_stretchdib (HDC dc,
BITMAPINFO bi;
int pixel = ((color->alpha_short >> 8) << 24) |
((color->red_short >> 8) << 16) |
((color->blue_short >> 8) << 8) |
(color->green_short >> 8);
((color->green_short >> 8) << 8) |
(color->blue_short >> 8);
int i;
/* Experiments suggest that it's impossible to use FillRect to set the alpha value