From c9bc37f8bd2b48c29ace2fabbc13038babd931e2 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 27 Feb 2011 14:15:56 +0000 Subject: Fix pixel alignment for rendering paths with stroke_width == 0. svn path=/trunk/netsurf/; revision=11843 --- cocoa/plotter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/plotter.m b/cocoa/plotter.m index c42f0d9a6..fe869751b 100644 --- a/cocoa/plotter.m +++ b/cocoa/plotter.m @@ -143,7 +143,7 @@ void cocoa_plot_render_path(NSBezierPath *path,const plot_style_t *pstyle) } if (pstyle->stroke_type != PLOT_OP_TYPE_NONE) { - if (pstyle->stroke_width % 2 != 0) cocoa_center_pixel( true, true ); + if (pstyle->stroke_width == 0 || pstyle->stroke_width % 2 != 0) cocoa_center_pixel( true, true ); cocoa_plot_path_set_stroke_pattern(path,pstyle); -- cgit v1.2.3