aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_iphone.h
diff options
context:
space:
mode:
authorOystein Eftevaag2007-12-31 00:22:37 +0000
committerOystein Eftevaag2007-12-31 00:22:37 +0000
commitb65cc2904aebe7e95bd9fdeeea0f51593a84598f (patch)
tree0f60d2efb436585e3e922b4662eb970079e3353c /backends/platform/iphone/osys_iphone.h
parent41f29f0504e3a5c797d48c2af823878e0b04dcc9 (diff)
downloadscummvm-rg350-b65cc2904aebe7e95bd9fdeeea0f51593a84598f.tar.gz
scummvm-rg350-b65cc2904aebe7e95bd9fdeeea0f51593a84598f.tar.bz2
scummvm-rg350-b65cc2904aebe7e95bd9fdeeea0f51593a84598f.zip
Added support for landscape mode in addition to the upside-down landscape mode we already had, and a few minor optimizations
svn-id: r30090
Diffstat (limited to 'backends/platform/iphone/osys_iphone.h')
-rw-r--r--backends/platform/iphone/osys_iphone.h5
1 files changed, 3 insertions, 2 deletions
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<Common::Rect> _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 <bool landscapeMode> void internUpdateScreen();
+ void internUpdateScreen();
void dirtyMouseCursor();
void dirtyFullScreen();
void clipRectToScreen(int16 &x, int16 &y, int16 &w, int16 &h);