Browse Source

MacOSX/Framework/VLCVideoCommon.m: Make sure there is no tearing when moving the splitview in the video window.

Pierre d'Herbemont 17 years ago
parent
commit
e856ec2c56
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Sources/VLCVideoCommon.m

+ 5 - 0
Sources/VLCVideoCommon.m

@@ -41,6 +41,9 @@
 
 - (void)layoutSublayersOfLayer:(CALayer *)layer
 {
+    [CATransaction begin];
+    [CATransaction setValue:[NSNumber numberWithBool:YES] forKey:kCATransactionDisableActions];
+    
     /* After having done everything normally resize the vlcopengllayer */
     if( [[layer sublayers] count] > 0 && [[[[layer sublayers] objectAtIndex:0] name] isEqualToString:@"vlcopengllayer"])
     {
@@ -59,5 +62,7 @@
         
         videolayer.frame = videoRect;
     }
+    
+    [CATransaction commit];
 }
 @end