diff options
author | Johannes Schickel | 2012-02-23 21:20:24 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-23 21:20:24 +0100 |
commit | 2ab5958c93c19a0ea23b76c2360ca8ef4d905b94 (patch) | |
tree | 104b246af6e3a7279063e2fd22f2d30ae12f32b4 /backends/platform/iphone/iphone_common.h | |
parent | 97feac5342420653bb1f4a5fbca68a5aae6b09a8 (diff) | |
download | scummvm-rg350-2ab5958c93c19a0ea23b76c2360ca8ef4d905b94.tar.gz scummvm-rg350-2ab5958c93c19a0ea23b76c2360ca8ef4d905b94.tar.bz2 scummvm-rg350-2ab5958c93c19a0ea23b76c2360ca8ef4d905b94.zip |
IPHONE: Move screen and overlay texture buffer to VideoContext.
Diffstat (limited to 'backends/platform/iphone/iphone_common.h')
-rw-r--r-- | backends/platform/iphone/iphone_common.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h index f5111fbe8c..6e97d9d853 100644 --- a/backends/platform/iphone/iphone_common.h +++ b/backends/platform/iphone/iphone_common.h @@ -23,6 +23,8 @@ #ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H #define BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H +#include "graphics/surface.h" + enum InputEvent { kInputMouseDown, kInputMouseUp, @@ -64,10 +66,12 @@ struct VideoContext { // Game screen state uint screenWidth, screenHeight; + Graphics::Surface screenTexture; // Overlay state bool overlayVisible; uint overlayWidth, overlayHeight; + Graphics::Surface overlayTexture; // Mouse cursor state uint mouseX, mouseY; @@ -82,8 +86,6 @@ struct VideoContext { // On the ObjC side void iPhone_updateScreen(); -void iPhone_updateScreenRect(unsigned short *screen, int x1, int y1, int x2, int y2, int width); -void iPhone_updateOverlayRect(unsigned short *screen, int x1, int y1, int x2, int y2, int width); bool iPhone_fetchEvent(int *outEvent, int *outX, int *outY); const char *iPhone_getDocumentsDir(); bool iPhone_isHighResDevice(); |