blue and green values were swapped in the DO_SOURCE case.

This commit is contained in:
Stuart Parmenter 2005-07-14 16:50:58 +00:00
parent 40edca337e
commit 174056f736
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-08-14 Stuart Parmenter <pavlov@pavlov.net>
* src/cairo-win32-surface.c: (_cairo_win32_surface_fill_rectangles):
blue and green values were swapped in the DO_SOURCE case.
2005-07-14 Carl Worth <cworth@cworth.org>
* test/cairo-test.c: (cairo_test_create_png_pattern): Rewrite to

View file

@ -706,7 +706,7 @@ _cairo_win32_surface_fill_rectangles (void *abstract_surface,
new_color = RGB (0, 0, 0);
break;
case DO_SOURCE:
new_color = RGB (color->red_short >> 8, color->blue_short >> 8, color->green_short >> 8);
new_color = RGB (color->red_short >> 8, color->green_short >> 8, color->blue_short >> 8);
break;
case DO_NOTHING:
return CAIRO_STATUS_SUCCESS;