MacOSX/Framework/VLCVideoLayer.m: Don't use any layout manager.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 2 Jan 2008 18:10:45 +0000 (18:10 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 2 Jan 2008 18:10:45 +0000 (18:10 +0000)
extras/MacOSX/Framework/Sources/VLCVideoLayer.m

index d51a9e3..60a795c 100644 (file)
 
     aLayer.name = @"vlcopengllayer";
 
-    [self setLayoutManager:[CAConstraintLayoutManager layoutManager]];
-
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMaxY
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMaxY]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMaxX
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMaxX]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMinX
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMinX]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMinY
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMinY]];
-
+    [aLayer setAutoresizingMask:kCALayerWidthSizable|kCALayerHeightSizable];
 
     [self insertSublayer:aLayer atIndex:0];