bug 647560 followup - put the color components in the right order. a=test-bustage
authorJonathan Kew <jfkthame@gmail.com>
Fri, 17 Jun 2011 09:14:09 +0100
changeset 71509 cdf17433d1f0c89f4e04598ede421a4d3ee257a5
parent 71508 0be95155a3ef27d4b9b051fc55b2661d96440054
child 71510 55cefb2cd18d75d4d1c0c20a6fdcef5e74a348e4
push idunknown
push userunknown
push dateunknown
reviewerstest-bustage
bugs647560
milestone7.0a1
bug 647560 followup - put the color components in the right order. a=test-bustage
gfx/cairo/cairo/src/cairo-win32-surface.c
--- a/gfx/cairo/cairo/src/cairo-win32-surface.c
+++ b/gfx/cairo/cairo/src/cairo-win32-surface.c
@@ -1498,18 +1498,18 @@ static cairo_status_t
 _cairo_win32_surface_fill_rectangles_stretchdib (HDC                   dc,
                                                  const cairo_color_t   *color,
                                                  cairo_rectangle_int_t *rect,
                                                  int                   num_rects)
 {
     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
        of a Win32 HDC for a transparent window. So instead we use StretchDIBits of a single
        pixel, which does work. */
     bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
     bi.bmiHeader.biWidth = 1;
     bi.bmiHeader.biHeight = 1;