Commit 75058739 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCVideoCommon.m: Make sure there is no tearing when moving...

MacOSX/Framework/VLCVideoCommon.m: Make sure there is no tearing when moving the splitview in the video window.
parent 1036774c
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment