aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJody Northup2009-06-09 07:55:43 +0000
committerJody Northup2009-06-09 07:55:43 +0000
commitc426dd99a4c4149418fa16996e38f0995ddcaea5 (patch)
tree8809c1cd7e6ee72546d4eac83854e84da079fc42 /backends/platform
parentd3ede78c9a51b46fdfebf907988d13cc410af7ee (diff)
downloadscummvm-rg350-c426dd99a4c4149418fa16996e38f0995ddcaea5.tar.gz
scummvm-rg350-c426dd99a4c4149418fa16996e38f0995ddcaea5.tar.bz2
scummvm-rg350-c426dd99a4c4149418fa16996e38f0995ddcaea5.zip
Laying the foundation for preliminary bitdepth negotiation. (No functionality changes yet)
svn-id: r41396
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/sdl.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index 6fe871fa83..22d3d41b00 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -178,6 +178,12 @@ public:
// Overlay
virtual Graphics::PixelFormat getOverlayFormat() const { return _overlayFormat; }
+
+#ifdef ENABLE_16BIT
+ // Game screen
+ virtual Graphics::PixelFormat getScreenFormat() const { return _screenFormat; }
+#endif
+
virtual void showOverlay();
virtual void hideOverlay();
virtual void clearOverlay();
@@ -232,7 +238,12 @@ protected:
// unseen game screen
SDL_Surface *_screen;
#ifdef ENABLE_16BIT
- SDL_Surface *_screen16;
+ Graphics::PixelFormat _screenFormat;
+
+ //HACK This is a temporary hack to get 16-bit graphics
+ //displaying quickly, which will be removed in favor of
+ //configuring the format of _screen on a per-game basis
+ SDL_Surface *_screen16;
#endif
// temporary screen (for scalers)