From f1a4f508afb7552629b8278d3cef8ed23c05998e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 24 Feb 2012 22:43:02 +0100 Subject: IPHONE: Move aspect ratio settings to VideoContext. --- backends/platform/iphone/iphone_common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backends/platform/iphone/iphone_common.h') diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h index 3c0365eff5..19e4f2ce9b 100644 --- a/backends/platform/iphone/iphone_common.h +++ b/backends/platform/iphone/iphone_common.h @@ -58,13 +58,14 @@ enum GraphicsModes { }; struct VideoContext { - VideoContext() : screenWidth(), screenHeight(), overlayVisible(false), + VideoContext() : asprectRatioCorrection(), screenWidth(), screenHeight(), overlayVisible(false), overlayWidth(), overlayHeight(), mouseX(), mouseY(), mouseHotspotX(), mouseHotspotY(), mouseWidth(), mouseHeight(), mouseIsVisible(), graphicsMode(kGraphicsModeLinear), shakeOffsetY() { } // Game screen state + bool asprectRatioCorrection; uint screenWidth, screenHeight; Graphics::Surface screenTexture; @@ -86,8 +87,6 @@ struct VideoContext { }; // On the ObjC side -void iPhone_setAspectRatioState(bool enable); -bool iPhone_getAspectRatioState(); void iPhone_updateScreen(); bool iPhone_fetchEvent(int *outEvent, int *outX, int *outY); const char *iPhone_getDocumentsDir(); -- cgit v1.2.3