From 6cc5b83bba51a4d048c09dc35c0d4ed78e07f7ad Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 20 Feb 2012 21:17:19 +0100 Subject: IPHONE: Default to portrait mode in case the orientation could not be determined. --- backends/platform/iphone/iphone_video.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/platform/iphone/iphone_video.m b/backends/platform/iphone/iphone_video.m index b0b9da8885..d5002ff3d2 100644 --- a/backends/platform/iphone/iphone_video.m +++ b/backends/platform/iphone/iphone_video.m @@ -541,7 +541,7 @@ static void setFilterModeForTexture(GLuint tex, GraphicsModes mode) { break; default: - _orientation = UIDeviceOrientationLandscapeRight; + _orientation = UIDeviceOrientationPortrait; } //printf("Window: (%d, %d), Surface: (%d, %d), Texture(%d, %d)\n", _fullWidth, _fullHeight, _width, _height, _gameScreenTextureWidth, _gameScreenTextureHeight); -- cgit v1.2.3