[vlc-devel] commit: macosx: Make sure the controller doesn' t show nothing instead of the playlist. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Aug 3 15:36:26 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Aug  3 15:30:56 2008 +0200| [ec9c851b28441ede1c3900f4edbf20fbc1996d67] | committer: Pierre d'Herbemont 

macosx: Make sure the controller doesn't show nothing instead of the playlist.

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

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 640e408..b5f6004 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2365,7 +2365,7 @@ end:
 
 - (void)windowDidResize:(NSNotification *)notif
 {
-    if( [o_window frame].size.height > 200 && b_small_window )
+    if( [o_window contentRectForFrameRect:[o_window frame]].size.height > 169. && b_small_window )
     {
         /* If large and coming from small then show */
         [o_playlist_view setAutoresizesSubviews: YES];




More information about the vlc-devel mailing list