[vlc-commits] [Git][videolan/vlc][3.0.x] macosx: fix slider bounds clipping
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Mar 28 05:44:19 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
8236ad0f by Marvin Scholz at 2025-03-27T15:33:01+00:00
macosx: fix slider bounds clipping
Fixes the slider not clipping correctly on recent macOS versions when
built against recent SDKs.
Fix #28953
- - - - -
1 changed file:
- modules/gui/macosx/VLCSlider.m
Changes:
=====================================
modules/gui/macosx/VLCSlider.m
=====================================
@@ -37,6 +37,13 @@
_isScrollable = YES;
if (@available(macOS 10.14, *)) {
[self viewDidChangeEffectiveAppearance];
+
+#if (__MAC_OS_X_VERSION_MAX_ALLOWED >= 140000)
+ // While this is available back to 10.9, it defaulted to
+ // true in macOS 13 and earlier so setting it starting
+ // in macOS 10.14+ is fine.
+ [self setClipsToBounds:YES];
+#endif
} else {
[self setSliderStyleLight];
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8236ad0ff91dac00361a8804a4b62c31a98213e7
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8236ad0ff91dac00361a8804a4b62c31a98213e7
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list