소스 검색

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

Pierre d'Herbemont 17 년 전
부모
커밋
e856ec2c56
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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