diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-27 14:15:56 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-02-27 14:15:56 +0000 |
commit | c9bc37f8bd2b48c29ace2fabbc13038babd931e2 (patch) | |
tree | cb0727b64642d3c4d0ddc81e3f56bc4ebc702957 /cocoa/plotter.m | |
parent | d84f818887977247f3dc45a5bee3ea1c88fb9ee3 (diff) | |
download | netsurf-c9bc37f8bd2b48c29ace2fabbc13038babd931e2.tar.gz netsurf-c9bc37f8bd2b48c29ace2fabbc13038babd931e2.tar.bz2 |
Fix pixel alignment for rendering paths with stroke_width == 0.
svn path=/trunk/netsurf/; revision=11843
Diffstat (limited to 'cocoa/plotter.m')
-rw-r--r-- | cocoa/plotter.m | 2 |
1 files changed, 1 insertions, 1 deletions
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); |