diff options
author | Jody Northup | 2009-06-10 05:35:18 +0000 |
---|---|---|
committer | Jody Northup | 2009-06-10 05:35:18 +0000 |
commit | 0a793f08a4d198f3f766214ed4ce85ac51ccea5e (patch) | |
tree | cff62f704ef84f40dcdc17631500c6e61b6af276 /base | |
parent | c426dd99a4c4149418fa16996e38f0995ddcaea5 (diff) | |
download | scummvm-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.cpp | 3 |
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")) |