mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-23 16:10:52 +00:00
* 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:
parent
1858519713
commit
ee87a3db27
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue