summaryrefslogtreecommitdiffstats
path: root/macosx/ttkMacOSXTheme.c
diff options
context:
space:
mode:
authorculler <culler>2020-08-24 01:08:34 (GMT)
committerculler <culler>2020-08-24 01:08:34 (GMT)
commitde756c286b87b130d1c34698462a398e1eb31b63 (patch)
tree0938ee7140f722281fb822a13d4f2a0234fe405c /macosx/ttkMacOSXTheme.c
parent4d8366f3ea29283c2698ea9a951c02e50c0e8fac (diff)
downloadtk-de756c286b87b130d1c34698462a398e1eb31b63.zip
tk-de756c286b87b130d1c34698462a398e1eb31b63.tar.gz
tk-de756c286b87b130d1c34698462a398e1eb31b63.tar.bz2
Adjust some point locations by 1 pixel in DrawDarkListHeader - thanks to Csaba Nemethi
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r--macosx/ttkMacOSXTheme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 64d3fac..0259a55 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -1174,10 +1174,10 @@ static void DrawDarkListHeader(
CGContextSetStrokeColorSpace(context, deviceRGB.CGColorSpace);
CGFloat x = bounds.origin.x, y = bounds.origin.y;
CGFloat w = bounds.size.width, h = bounds.size.height;
- CGPoint top[2] = {{x, y}, {x + w, y}};
- CGPoint bottom[2] = {{x, y + h}, {x + w, y + h}};
- CGPoint separator[2] = {{x + w, y + 3}, {x + w, y + h - 3}};
+ CGPoint top[2] = {{x, y + 1}, {x + w, y + 1}};
+ CGPoint bottom[2] = {{x, y + h}, {x + w, y + h}};
+ CGPoint separator[2] = {{x + w - 1, y + 3}, {x + w - 1, y + h - 3}};
CGContextSaveGState(context);
CGContextSetShouldAntialias(context, false);
stroke = [NSColor colorWithColorSpace: deviceRGB