aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorJody Northup2009-06-10 05:35:18 +0000
committerJody Northup2009-06-10 05:35:18 +0000
commit0a793f08a4d198f3f766214ed4ce85ac51ccea5e (patch)
treecff62f704ef84f40dcdc17631500c6e61b6af276 /base
parentc426dd99a4c4149418fa16996e38f0995ddcaea5 (diff)
downloadscummvm-rg350-0a793f08a4d198f3f766214ed4ce85ac51ccea5e.tar.gz
scummvm-rg350-0a793f08a4d198f3f766214ed4ce85ac51ccea5e.tar.bz2
scummvm-rg350-0a793f08a4d198f3f766214ed4ce85ac51ccea5e.zip
SDL backend now dynamically generates 8 or 16-bit color surface depending on engine request (using ad-hoc format).
svn-id: r41416
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index dba4aeccaa..d76d8828a1 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -226,6 +226,9 @@ static void setupGraphics(OSystem &system) {
// Set the user specified graphics mode (if any).
system.setGraphicsMode(ConfMan.get("gfx_mode").c_str());
+#ifdef ENABLE_16BIT
+ system.initFormat(Graphics::kFormat8Bit);
+#endif
system.initSize(320, 200);
if (ConfMan.hasKey("aspect_ratio"))