[vlc-commits] macosx: Align slider with backing rect
Marvin Scholz
git at videolan.org
Wed Aug 16 00:47:47 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Aug 15 22:38:08 2017 +0200| [7eafcad082d164125b300b24182cb4b4a870d487] | committer: Marvin Scholz
macosx: Align slider with backing rect
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7eafcad082d164125b300b24182cb4b4a870d487
---
modules/gui/macosx/VLCSliderCell.m | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/gui/macosx/VLCSliderCell.m b/modules/gui/macosx/VLCSliderCell.m
index 51cee0e653..d475b0b47a 100644
--- a/modules/gui/macosx/VLCSliderCell.m
+++ b/modules/gui/macosx/VLCSliderCell.m
@@ -217,6 +217,8 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
// Inset rect
rect = NSInsetRect(rect, 1.0, 1.0);
+ rect = [[self controlView] backingAlignedRect:rect options:NSAlignAllEdgesNearest];
+
// Empty Track Drawing
NSBezierPath* emptyTrackPath = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:3 yRadius:3];
[_trackGradient drawInBezierPath:emptyTrackPath angle:-90];
More information about the vlc-commits
mailing list