diff options
author | culler <culler> | 2019-06-29 00:05:14 (GMT) |
---|---|---|
committer | culler <culler> | 2019-06-29 00:05:14 (GMT) |
commit | b1fa4ddec9f6c1ff76fc74fb964dd230e7c95d4d (patch) | |
tree | 8f3f0a18c6f8be310d6b48fdfde0fa1359f1847b /macosx/ttkMacOSXTheme.c | |
parent | eb855ceb7719a330eb88618e2858135f4838dd23 (diff) | |
download | tk-b1fa4ddec9f6c1ff76fc74fb964dd230e7c95d4d.zip tk-b1fa4ddec9f6c1ff76fc74fb964dd230e7c95d4d.tar.gz tk-b1fa4ddec9f6c1ff76fc74fb964dd230e7c95d4d.tar.bz2 |
Fix compiler warnings on all macOS versions.
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 05a5539..7ea9448 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -1042,7 +1042,6 @@ static void DrawDarkFocusRing( {x, y + h}, {x, y + 1}, {x + w - 1, y + 1}, {x + w - 1, y + h} }; CGPoint bottom[2] = {{x, y + h}, {x + w, y + h}}; - CGRect outerRect = CGRectInset(bounds, -3, -3); CGContextSaveGState(context); CGContextSetShouldAntialias(context, false); @@ -1061,7 +1060,8 @@ static void DrawDarkFocusRing( CGContextStrokePath(context); CGContextSetShouldAntialias(context, true); CGContextSetFillColorWithColor(context, CGCOLOR(fillColor)); - CGPathRef path = CGPathCreateWithRoundedRect(outerRect, 4, 4, NULL); + CGPathRef path = CGPathCreateWithRoundedRect(CGRectInset(bounds, -3, -3), + 4, 4, NULL); CGContextBeginPath(context); CGContextAddPath(context, path); CGContextAddRect(context, bounds); @@ -1091,6 +1091,7 @@ static void DrawDarkFrame( }; CGPoint bottom[2] = {{x, y + h}, {x + w, y + h}}; CGPoint accent[2] = {{x, y + 1}, {x + w, y + 1}}; + switch (kind) { case kHIThemeFrameTextFieldSquare: CGContextSaveGState(context); |