diff --git a/isgl3d/core/Isgl3dDirector.m b/isgl3d/core/Isgl3dDirector.m index b64df9d..f935ded 100644 --- a/isgl3d/core/Isgl3dDirector.m +++ b/isgl3d/core/Isgl3dDirector.m @@ -342,6 +342,7 @@ - (void)stopAnimation { } - (void)run { + [self onResizeFromLayer]; [self startAnimation]; } diff --git a/isgl3d/primitives/Isgl3dPrimitiveFactory.m b/isgl3d/primitives/Isgl3dPrimitiveFactory.m index 6e4de38..924c3fa 100644 --- a/isgl3d/primitives/Isgl3dPrimitiveFactory.m +++ b/isgl3d/primitives/Isgl3dPrimitiveFactory.m @@ -98,7 +98,7 @@ - (Isgl3dGLMesh *) UILabelMeshWithWidth:(unsigned int)width height:(unsigned int float uMax = contentSize.width / width; float vMax = contentSize.height / height; - Isgl3dGLMesh * labelMesh = [Isgl3dPlane meshWithGeometryAndUVMap:contentSize.width height:contentSize.height nx:2 ny:2 uvMap:[Isgl3dUVMap uvMapWithUA:0 vA:0 uB:uMax vB:0 uC:0 vC:vMax]]; + Isgl3dGLMesh * labelMesh = [Isgl3dPlane meshWithGeometryAndUVMap:contentSize.width * [Isgl3dDirector sharedInstance].contentScaleFactor height:contentSize.height * [Isgl3dDirector sharedInstance].contentScaleFactor nx:2 ny:2 uvMap:[Isgl3dUVMap uvMapWithUA:0 vA:0 uB:uMax vB:0 uC:0 vC:vMax]]; // GLMesh * labelMesh = [[Plane alloc] initWithGeometryAndUVMap:width height:height nx:2 ny:2 uvMap:[UVMap uvMapWithUA:0 vA:0 uB:0.5 vB:0 uC:0 vC:0.5]]; return labelMesh; }