Cairo backend:

-DPSsetflat: and -DPScurrentflat should not have been transforming
the flatness value with the current transformation matrix.
The effect of this could be seen in the Apple BezierPathLab example;
zooming in on the circle caused it to look more and more like a
polygon.

Also set NSBezierPath default flatness to 0.6 to match OS X
(it was 1.0, which made circles look a bit rough)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29145 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2009-12-20 18:47:26 +00:00
parent 32d83a1422
commit b3d818cf84
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2009-12-19 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSBezierPath.m: Change default flatness to 0.6 matching OS X
2009-12-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCell.m (-setStringValue:): Remove optimisation for

View file

@ -51,7 +51,7 @@ static Class NSBezierPath_concrete_class = nil;
static NSWindingRule default_winding_rule = NSNonZeroWindingRule;
static float default_line_width = 1.0;
static float default_flatness = 1.0;
static float default_flatness = 0.6;
static NSLineJoinStyle default_line_join_style = NSMiterLineJoinStyle;
static NSLineCapStyle default_line_cap_style = NSButtLineCapStyle;
static float default_miter_limit = 10.0;