mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 05:38:02 +02:00
blue and green values were swapped in the DO_SOURCE case.
This commit is contained in:
parent
40edca337e
commit
174056f736
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue