From b65cc2904aebe7e95bd9fdeeea0f51593a84598f Mon Sep 17 00:00:00 2001 From: Oystein Eftevaag Date: Mon, 31 Dec 2007 00:22:37 +0000 Subject: Added support for landscape mode in addition to the upside-down landscape mode we already had, and a few minor optimizations svn-id: r30090 --- backends/platform/iphone/osys_iphone.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends/platform/iphone/osys_iphone.h') diff --git a/backends/platform/iphone/osys_iphone.h b/backends/platform/iphone/osys_iphone.h index 8ae768fd44..2d0bea310d 100644 --- a/backends/platform/iphone/osys_iphone.h +++ b/backends/platform/iphone/osys_iphone.h @@ -26,6 +26,7 @@ #ifdef IPHONE_BACKEND #include "graphics/surface.h" +#include "iphone_common.h" #define AUDIO_BUFFERS 3 #define WAVE_BUFFER_SIZE 8192 @@ -89,7 +90,7 @@ protected: TimerProc _timerCallback; Common::Array _dirtyRects; - bool _landscapeMode; + ScreenOrientation _screenOrientation; bool _fullScreenIsDirty; public: @@ -155,7 +156,7 @@ public: protected: inline void addDirtyRect(int16 x1, int16 y1, int16 w, int16 h); - template void internUpdateScreen(); + void internUpdateScreen(); void dirtyMouseCursor(); void dirtyFullScreen(); void clipRectToScreen(int16 &x, int16 &y, int16 &w, int16 &h); -- cgit v1.2.3