made Graphics::PixelFormat(ColorMode) constructor explicit, removed Graphics::PixelFormat(int bitFormat) constructor that was never really implemented anyway

svn-id: r41540
This commit is contained in:
Jody Northup 2009-06-15 10:10:22 +00:00
parent 8d306ebccf
commit c97bfd16f9
4 changed files with 4 additions and 37 deletions

View file

@ -1085,7 +1085,7 @@ Common::Error ScummEngine::init() {
(_screenWidth * _textSurfaceMultiplier > 320));
#ifdef ENABLE_16BIT
} else if (_game.features & GF_16BIT_COLOR) {
Graphics::PixelFormat format = Graphics::kFormatRGB555;
Graphics::PixelFormat format(Graphics::kFormatRGB555);
initGraphics(_screenWidth, _screenHeight, _screenWidth > 320, format);
if (format != _system->getScreenFormat())
return Common::kUnsupportedColorMode;