* Source/cairo/CairoGState.m: Only use calls for

cairo_pattern_set_extend() on cairo > 1.6.0.
Patch suggested by Eric Wasylishen <ewasylishen@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29868 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-07 21:40:36 +00:00
parent 18ab944a93
commit 5253105797
2 changed files with 19 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2010-03-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/cairo/CairoGState.m: Only use calls for
cairo_pattern_set_extend() on cairo > 1.6.0.
Patch suggested by Eric Wasylishen <ewasylishen@gmail.com>.
2010-03-05 Richard Frith-Macdonald <rfm@gnu.org> 2010-03-05 Richard Frith-Macdonald <rfm@gnu.org>
* Source/cairo/CairoGState.m: * Source/cairo/CairoGState.m:
@ -6,12 +12,12 @@
2010-02-24 16:45-EST Gregory John Casamento <greg.casamento@gmail.com> 2010-02-24 16:45-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/win32/WIN32Server.m: Added a boolean to control if * Source/win32/WIN32Server.m: Added a boolean to control if
callbacks are honored so that we can ignore the callbacks are honored so that we can ignore the
SetActiveWindow(...) call when windows are resigned. Otherwise SetActiveWindow(...) call when windows are resigned. Otherwise
this causes some issues and could result in an inconsistent state. this causes some issues and could result in an inconsistent state.
* Source/winlib/WIN32GState.m: Moved AlphaBlend to seperate * Source/winlib/WIN32GState.m: Moved AlphaBlend to seperate
function so that it can be called elsewhere. function so that it can be called elsewhere.
2010-02-20 Fred Kiefer <FredKiefer@gmx.de> 2010-02-20 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -1207,7 +1207,10 @@ _set_op(cairo_t *ct, NSCompositingOperation op)
cairo_matrix_init_scale(&local_matrix, 1, -1); cairo_matrix_init_scale(&local_matrix, 1, -1);
cairo_matrix_translate(&local_matrix, 0, -2*pixelsHigh); cairo_matrix_translate(&local_matrix, 0, -2*pixelsHigh);
cairo_pattern_set_matrix(cpattern, &local_matrix); cairo_pattern_set_matrix(cpattern, &local_matrix);
cairo_pattern_set_extend(cpattern, CAIRO_EXTEND_PAD); if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 6, 0))
{
cairo_pattern_set_extend(cpattern, CAIRO_EXTEND_PAD);
}
cairo_set_source(_ct, cpattern); cairo_set_source(_ct, cpattern);
cairo_pattern_destroy(cpattern); cairo_pattern_destroy(cpattern);
@ -1222,7 +1225,10 @@ _set_op(cairo_t *ct, NSCompositingOperation op)
cairo_matrix_init_scale(&local_matrix, 1, -1); cairo_matrix_init_scale(&local_matrix, 1, -1);
cairo_matrix_translate(&local_matrix, 0, -pixelsHigh); cairo_matrix_translate(&local_matrix, 0, -pixelsHigh);
cairo_pattern_set_matrix(cpattern, &local_matrix); cairo_pattern_set_matrix(cpattern, &local_matrix);
cairo_pattern_set_extend(cpattern, CAIRO_EXTEND_PAD); if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 6, 0))
{
cairo_pattern_set_extend(cpattern, CAIRO_EXTEND_PAD);
}
cairo_set_source(_ct, cpattern); cairo_set_source(_ct, cpattern);
cairo_pattern_destroy(cpattern); cairo_pattern_destroy(cpattern);