mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
Corrected initial clientBounds size for retina displays.
git-svn-id: http://xni.googlecode.com/svn/XNI@111 ac433895-eea3-a490-d80a-17149a75e588
This commit is contained in:
parent
36b39aabd9
commit
0e8b503f06
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user