summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorculler <culler>2020-07-20 19:46:37 (GMT)
committerculler <culler>2020-07-20 19:46:37 (GMT)
commitc160fe8bd880807117acc15040f8f4116ec85418 (patch)
tree69622de5fddcffa5373deb47f485f65dda0dad92 /macosx/tkMacOSXDraw.c
parenta9de5cde4d9e25fecc883152264797d1e3ee622a (diff)
downloadtk-c160fe8bd880807117acc15040f8f4116ec85418.zip
tk-c160fe8bd880807117acc15040f8f4116ec85418.tar.gz
tk-c160fe8bd880807117acc15040f8f4116ec85418.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 7d12a4b..68e7ada 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1763,6 +1763,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) {