From 0e8b503f06b46b096047a2860ebd60409546335a Mon Sep 17 00:00:00 2001 From: Matej Jan Date: Wed, 23 May 2012 17:11:57 +0000 Subject: [PATCH] Corrected initial clientBounds size for retina displays. git-svn-id: http://xni.googlecode.com/svn/XNI@111 ac433895-eea3-a490-d80a-17149a75e588 --- Classes/Retronator/Xni/Framework/GameWindow.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Retronator/Xni/Framework/GameWindow.m b/Classes/Retronator/Xni/Framework/GameWindow.m index 021c04f..28a8c92 100644 --- a/Classes/Retronator/Xni/Framework/GameWindow.m +++ b/Classes/Retronator/Xni/Framework/GameWindow.m @@ -28,7 +28,10 @@ clientSizeChanged = [[Event alloc] init]; orientationChanged = [[Event alloc] init]; - clientBounds = [[Rectangle rectangleWithCGRect:[[UIScreen mainScreen] bounds]] retain]; + clientBounds = [[Rectangle rectangleWithCGRect:[[UIScreen mainScreen] bounds]] retain]; + float scale = [UIScreen mainScreen].scale; + clientBounds.width *= scale; + clientBounds.height *= scale; } return self; }