]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/embeddedwindow.m
macosx: experimental 64bit support
[vlc] / modules / gui / macosx / embeddedwindow.m
index 8dc03299d2e26b5aa9061970d29b2b4ad92e1549..0dc8bd28c8dd3dd2f3c2350c40e539afdf4e91f7 100644 (file)
@@ -27,7 +27,7 @@
  *****************************************************************************/
 
 /* DisableScreenUpdates, SetSystemUIMode, ... */
-#import <QuickTime/QuickTime.h>
+#import <Carbon/Carbon.h>
 
 #import "intf.h"
 #import "controls.h"
         }
  
         /* Make sure we don't see the o_view disappearing of the screen during this operation */
-        DisableScreenUpdates();
-        [[self contentView] replaceSubview:o_view with:o_temp_view];
+               #ifndef __x86_64__
+                       DisableScreenUpdates();
+               #endif
+               [[self contentView] 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];
-        EnableScreenUpdates();
+               #ifndef __x86_64__
+                       EnableScreenUpdates();
+               #endif
     }
 
     /* We are in fullscreen (and no animation is running) */
 {
     /* This function is private and should be only triggered at the end of the fullscreen change animation */
     /* Make sure we don't see the o_view disappearing of the screen during this operation */
-    DisableScreenUpdates();
+       #ifndef __x86_64__
+               DisableScreenUpdates();
+       #endif
     [o_view retain];
     [o_view removeFromSuperviewWithoutNeedingDisplay];
     [[self contentView] replaceSubview:o_temp_view with:o_view];
     if ([self isVisible])
         [super makeKeyAndOrderFront:self]; /* our version contains a workaround */
     [o_fullscreen_window orderOut: self];
-    EnableScreenUpdates();
+       #ifndef __x86_64__
+               EnableScreenUpdates();
+       #endif
 
     [o_fullscreen_window release];
     o_fullscreen_window = nil;