Commit 7eafcad0 authored by Marvin Scholz's avatar Marvin Scholz

macosx: Align slider with backing rect

parent 02251246
......@@ -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];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment