aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_main.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-23 03:13:09 +0100
committerJohannes Schickel2012-02-23 03:18:00 +0100
commit5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e (patch)
treec2d7a24d5837b666bfdb8f7dda155f77377334a6 /backends/platform/iphone/osys_main.h
parente00fc73eb891b7f460e2377fed7f12224a9103cf (diff)
downloadscummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.tar.gz
scummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.tar.bz2
scummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.zip
IPHONE: Let iPhoneView and OSystem_IPHONE share the same VideoContext.
This allows for better sharing between the current video state in the view and the OSystem implementation. This also gets rid of most C interface functions for calling ObjC code.
Diffstat (limited to 'backends/platform/iphone/osys_main.h')
-rw-r--r--backends/platform/iphone/osys_main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h
index f654537ac6..39395ac99a 100644
--- a/backends/platform/iphone/osys_main.h
+++ b/backends/platform/iphone/osys_main.h
@@ -61,7 +61,7 @@ protected:
Audio::MixerImpl *_mixer;
- VideoContext _videoContext;
+ VideoContext *_videoContext;
Graphics::Surface _framebuffer;
byte *_gameScreenRaw;
@@ -183,6 +183,9 @@ public:
virtual void logMessage(LogMessageType::Type type, const char *message);
protected:
+ void initVideoContext();
+ void updateOutputSurface();
+
void internUpdateScreen();
void dirtyFullScreen();
void dirtyFullOverlayScreen();