[vlc-commits] macosx: optimized drawing is gone in macOS 10.10

Felix Paul Kühne git at videolan.org
Sat Jun 9 17:44:15 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Jun  9 16:23:54 2018 +0200| [109baaa5738d497e1b1e9534ea90b7b1e6b27f0c] | committer: Felix Paul Kühne

macosx: optimized drawing is gone in macOS 10.10

There is no modern counterpart as it is no longer needed within the new window server

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=109baaa5738d497e1b1e9534ea90b7b1e6b27f0c
---

 modules/gui/macosx/VLCMainWindow.m           | 4 ----
 modules/gui/macosx/VLCVoutWindowController.m | 2 --
 2 files changed, 6 deletions(-)

diff --git a/modules/gui/macosx/VLCMainWindow.m b/modules/gui/macosx/VLCMainWindow.m
index ff89ea66e2..b181271267 100644
--- a/modules/gui/macosx/VLCMainWindow.m
+++ b/modules/gui/macosx/VLCMainWindow.m
@@ -152,10 +152,6 @@ static const float f_min_window_height = 307.;
 
     [self setDelegate:self];
     [self setRestorable:NO];
-    // TODO: useOptimizedDrawing deprecated since 10.10, but no
-    // documentation provided what do use instead.
-    // see radar://23047516
-    [self useOptimizedDrawing:YES];
     [self setExcludedFromWindowsMenu:YES];
     [self setAcceptsMouseMovedEvents:YES];
     [self setFrameAutosaveName:@"mainwindow"];
diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index d1d90085de..4c84c9aebc 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -283,7 +283,6 @@ void WindowClose(vout_window_t *p_wnd)
         [newVideoWindow setCanBecomeMainWindow: !videoWallpaper];
         [newVideoWindow setAcceptsMouseMovedEvents: !videoWallpaper];
         [newVideoWindow setMovableByWindowBackground: !videoWallpaper];
-        [newVideoWindow useOptimizedDrawing: YES];
 
         voutView = [[VLCVoutView alloc] initWithFrame:[[newVideoWindow contentView] bounds]];
         [voutView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
@@ -324,7 +323,6 @@ void WindowClose(vout_window_t *p_wnd)
 
             [newVideoWindow setDelegate: newVideoWindow];
             [newVideoWindow setLevel:NSNormalWindowLevel];
-            [newVideoWindow useOptimizedDrawing: YES];
             voutView = [newVideoWindow videoView];
             isEmbedded = NO;
         }



More information about the vlc-commits mailing list