[vlc-devel] commit: gui/macosx: uses the superview object for swapping between the video view and the temporary view . (Sebastien Zwickert )

git version control git at videolan.org
Sat Dec 26 10:31:22 CET 2009


vlc | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Fri Dec 25 21:21:37 2009 +0100| [39d525d8bf55537dfa35119c7d5c013df2718ce8] | committer: Pierre d'Herbemont 

gui/macosx: uses the superview object for swapping between the video view and the temporary view.

Signed-off-by: Pierre d'Herbemont <pdherbemont at free.fr>

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

 modules/gui/macosx/embeddedwindow.m |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m
index 48e54e1..57622e3 100644
--- a/modules/gui/macosx/embeddedwindow.m
+++ b/modules/gui/macosx/embeddedwindow.m
@@ -445,7 +445,7 @@
             if ([screen isMainScreen])
                 SetSystemUIMode( kUIModeAllHidden, kUIOptionAutoShowMenuBar);
  
-            [[self contentView] replaceSubview:o_view with:o_temp_view];
+            [[o_view superview] replaceSubview:o_view with:o_temp_view];
             [o_temp_view setFrame:[o_view frame]];
             [o_fullscreen_window setContentView:o_view];
 
@@ -467,7 +467,7 @@
  
         /* Make sure we don't see the o_view disappearing of the screen during this operation */
         NSDisableScreenUpdates();
-        [[self contentView] replaceSubview:o_view with:o_temp_view];
+        [[o_view superview] replaceSubview:o_view with:o_temp_view];
         [o_temp_view setFrame:[o_view frame]];
         [o_fullscreen_window setContentView:o_view];
         [o_fullscreen_window makeKeyAndOrderFront:self];
@@ -661,7 +661,7 @@
     NSDisableScreenUpdates();
     [o_view retain];
     [o_view removeFromSuperviewWithoutNeedingDisplay];
-    [[self contentView] replaceSubview:o_temp_view with:o_view];
+    [[o_temp_view superview] replaceSubview:o_temp_view with:o_view];
     [o_view release];
     [o_view setFrame:[o_temp_view frame]];
     [self makeFirstResponder: o_view];




More information about the vlc-devel mailing list