diff options
author | Jody Northup | 2009-07-07 07:50:40 +0000 |
---|---|---|
committer | Jody Northup | 2009-07-07 07:50:40 +0000 |
commit | 2c5d11b67b35f93b2292c1ca56d0c9fc89608921 (patch) | |
tree | 6a1846b7ec765e7f1f4a07a107a103ae1925ec36 /engines | |
parent | 11717150e7c18286fa9b877830ddf5155ee99760 (diff) | |
download | scummvm-rg350-2c5d11b67b35f93b2292c1ca56d0c9fc89608921.tar.gz scummvm-rg350-2c5d11b67b35f93b2292c1ca56d0c9fc89608921.tar.bz2 scummvm-rg350-2c5d11b67b35f93b2292c1ca56d0c9fc89608921.zip |
Removed PixelFormat convenience constructors at behest of Max and Eugene.
svn-id: r42207
Diffstat (limited to 'engines')
-rw-r--r-- | engines/groovie/groovie.cpp | 4 | ||||
-rw-r--r-- | engines/scumm/scumm.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index cdf05e803b..c2f13e4f74 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -78,11 +78,11 @@ Common::Error GroovieEngine::run() { // Save the enabled mode as it can be both an RGB mode or CLUT8 _pixelFormat = _system->getScreenFormat(); - _mode8bit = (_pixelFormat == Graphics::PixelFormat::createFormatCLUT8()); + _mode8bit = (_pixelFormat == Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0)); break; case kGroovieT7G: initGraphics(640, 480, true); - _pixelFormat = Graphics::PixelFormat::createFormatCLUT8(); + _pixelFormat = Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0); break; } diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index c6ed7b71cc..347abee190 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1085,7 +1085,8 @@ Common::Error ScummEngine::init() { (_screenWidth * _textSurfaceMultiplier > 320)); } else if (_game.features & GF_16BIT_COLOR) { #ifdef ENABLE_RGB_COLOR - Graphics::PixelFormat format = Graphics::PixelFormat::createFormatRGB555(); + Graphics::PixelFormat format = Graphics::PixelFormat(2, 3, 3, 3, 8, 10, 5, 0, 0) +; initGraphics(_screenWidth, _screenHeight, _screenWidth > 320, &format); if (format != _system->getScreenFormat()) return Common::kUnsupportedColorMode; |