mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Fix pixel alignment for rendering paths with stroke_width == 0.
svn path=/trunk/netsurf/; revision=11843
This commit is contained in:
parent
d84f818887
commit
c9bc37f8bd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user