[vlc-commits] macosx: fixed drawing issue when expanding the main window after collapsing

Felix Paul Kühne git at videolan.org
Sat Aug 25 13:13:16 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Aug 25 13:13:07 2012 +0200| [7b28d2e75eae222a2e8e773d297baa5864e5a60b] | committer: Felix Paul Kühne

macosx: fixed drawing issue when expanding the main window after collapsing

Inspired by efbad059

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=7b28d2e75eae222a2e8e773d297baa5864e5a60b
---

 modules/gui/macosx/MainWindow.m |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index d22ceb7..2e4a360 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -719,23 +719,23 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
 - (void)resizePlaylistAfterCollapse
 {
-    id o_playlist_viewitem;
-    if (OSX_LEOPARD)
-        o_playlist_viewitem = o_playlist_table;
-    else
-        o_playlist_viewitem = [o_playlist_table animator];
-
     NSRect plrect;
     plrect = [o_playlist_table frame];
-    plrect.size.height = i_lastSplitViewHeight - 19.0; // actual pl top bar height, which differs from its frame
-    [o_playlist_viewitem setFrame: plrect];
+    plrect.size.height = i_lastSplitViewHeight - 20.; // actual pl top bar height, which differs from its frame
+    if (OSX_LEOPARD)
+        [o_playlist_table setFrame: plrect];
+    else
+        [[o_playlist_table animator] setFrame: plrect];
 
     NSRect rightSplitRect;
     rightSplitRect = [o_right_split_view frame];
     plrect = [o_dropzone_box frame];
     plrect.origin.x = (rightSplitRect.size.width - plrect.size.width) / 2;
     plrect.origin.y = (rightSplitRect.size.height - plrect.size.height) / 2;
-    [o_playlist_viewitem setFrame: plrect];
+    if (OSX_LEOPARD)
+        [o_dropzone_box setFrame: plrect];
+    else
+        [[o_dropzone_box animator] setFrame: plrect];
 }
 
 - (void)makeSplitViewVisible



More information about the vlc-commits mailing list