* Source/cairo/CairoGState.m (-drawGState:...): Use CAIRO_EXTEND_PAD

on the pattern to prevent blurred edges when scaling up.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33759 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-08-17 05:47:18 +00:00
parent 1858519713
commit ee87a3db27
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-08-16 Eric Wasylishen <ewasylishen@gmail.com>
* Source/cairo/CairoGState.m (-drawGState:...): Use CAIRO_EXTEND_PAD
on the pattern to prevent blurred edges when scaling up.
2011-08-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/cairo/CairoGState.m (-DPSstroke:): If the line width is

View file

@ -1391,6 +1391,10 @@ doesn't support to use the receiver cairo target as the source. */
cairo_matrix_init_scale(&source_matrix, 1, -1);
cairo_matrix_translate(&source_matrix, 0, -[source->_surface size].height);
cairo_pattern_set_matrix(cpattern, &source_matrix);
if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 6, 0))
{
cairo_pattern_set_extend(cpattern, CAIRO_EXTEND_PAD);
}
cairo_set_source(_ct, cpattern);
cairo_pattern_destroy(cpattern);
cairo_rectangle(_ct, aRect.origin.x, aRect.origin.y, width, height);