Commit 43cb4e10 authored by Marvin Scholz's avatar Marvin Scholz

macosx: Add tickmark drawing to VLCHUDSliderCell

The Slider cell was using the tick mark drawing that the OS provided,
which could cause them to be drawn with dark color on dark background
on older OS X versions.
This commit adds the missing tick mark drawing.
parent f3e0abf8
......@@ -175,4 +175,17 @@ NSAffineTransform* RotationTransform(const CGFloat angle, const NSPoint point)
[path fill];
}
- (void)drawTickMarks
{
for (int i = 0; i < self.numberOfTickMarks; i++) {
NSRect tickMarkRect = [self rectOfTickMarkAtIndex:i];
if (self.isEnabled) {
[_strokeColor setFill];
} else {
[_disabledStrokeColor setFill];
}
NSRectFill(tickMarkRect);
}
}
@end
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