MacOSX/Framework: Make sure the layer will resize on bounds change.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Jan 2008 21:07:35 +0000 (21:07 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Jan 2008 21:07:35 +0000 (21:07 +0000)
extras/MacOSX/Framework/Sources/VLCVideoLayer.m
extras/MacOSX/Framework/Sources/VLCVideoView.m

index bebca9b..6b058de 100644 (file)
@@ -70,6 +70,7 @@
     self.layoutManager = layoutManager;
     
     [self insertSublayer:voutLayer atIndex:0];
+    [self setNeedsDisplayOnBoundsChange:YES];
 
     [CATransaction commit];
 }
index 40c6093..0cb20f4 100644 (file)
 
     [aLayer setNeedsLayout];
     [aLayer setNeedsDisplay];
+    [rootLayer setNeedsDisplayOnBoundsChange:YES];
     [rootLayer setNeedsDisplay];
     [rootLayer layoutIfNeeded];
     [CATransaction commit];