diff options
author | culler <culler> | 2020-07-20 19:47:00 (GMT) |
---|---|---|
committer | culler <culler> | 2020-07-20 19:47:00 (GMT) |
commit | 707f4e96eca8672368e155309c52690c3b375d15 (patch) | |
tree | 3297c14d6af5a3df9b3494c7f0ed3d6583e2c1a6 /macosx/tkMacOSXDraw.c | |
parent | 9e0d2cb617925089f693835cd6194fdf6bf9d4ed (diff) | |
parent | c160fe8bd880807117acc15040f8f4116ec85418 (diff) | |
download | tk-707f4e96eca8672368e155309c52690c3b375d15.zip tk-707f4e96eca8672368e155309c52690c3b375d15.tar.gz tk-707f4e96eca8672368e155309c52690c3b375d15.tar.bz2 |
Fix [cf38535396]: Aqua should use pixel-aligned dash pattern for non-Retina displays - patch from Christopher Chavez
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r-- | macosx/tkMacOSXDraw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index 251ec9d..6c72e0a 100644 --- a/macosx/tkMacOSXDraw.c +++ b/macosx/tkMacOSXDraw.c @@ -1749,6 +1749,7 @@ TkMacOSXSetupDrawingContext( int num = 0; char *p = &gc->dashes; CGFloat dashOffset = gc->dash_offset; + dashOffset -= (gc->line_width % 2) ? 0.5 : 0.0; CGFloat lengths[10]; while (p[num] != '\0' && num < 10) { |