summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2020-08-24 01:09:36 (GMT)
committerculler <culler>2020-08-24 01:09:36 (GMT)
commit15419f463eb283e2b0b1613b826c097b3b29e60b (patch)
treeb6dd7c8eb3c0773653e72e0e81987e7466e47965
parentc11927a52ed021b8a804fac54e1b5415b0bb93a9 (diff)
parentde756c286b87b130d1c34698462a398e1eb31b63 (diff)
downloadtk-15419f463eb283e2b0b1613b826c097b3b29e60b.zip
tk-15419f463eb283e2b0b1613b826c097b3b29e60b.tar.gz
tk-15419f463eb283e2b0b1613b826c097b3b29e60b.tar.bz2
Adjust some point locations by 1 pixel in DrawDarkListHeader - thanks to Csaba Nemethi
-rw-r--r--macosx/ttkMacOSXTheme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index f9da048..1db74bf 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