diff options
| author | Matthew Hoops | 2009-07-19 15:00:39 +0000 |
|---|---|---|
| committer | Matthew Hoops | 2009-07-19 15:00:39 +0000 |
| commit | 52a160657f4db676e30b6d52abbf513154aad662 (patch) | |
| tree | db23b0a48bd3b50756f033f7d3a195add177ed2e /backends/platform/sdl | |
| parent | aa98f944fe87e21870f375581541926913a4ac82 (diff) | |
| download | scummvm-rg350-52a160657f4db676e30b6d52abbf513154aad662.tar.gz scummvm-rg350-52a160657f4db676e30b6d52abbf513154aad662.tar.bz2 scummvm-rg350-52a160657f4db676e30b6d52abbf513154aad662.zip | |
Fix 16bit color when using the hardware screen's pixel format. The call was never updated after r42467.
svn-id: r42617
Diffstat (limited to 'backends/platform/sdl')
| -rw-r--r-- | backends/platform/sdl/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp index 4e47db0827..6d9f3fc6eb 100644 --- a/backends/platform/sdl/graphics.cpp +++ b/backends/platform/sdl/graphics.cpp @@ -254,8 +254,8 @@ Common::List<Graphics::PixelFormat> OSystem_SDL::getSupportedFormats() { if (_hwscreen) { // Get our currently set hardware format format = Graphics::PixelFormat(_hwscreen->format->BytesPerPixel, - _hwscreen->format->Rloss, _hwscreen->format->Gloss, - _hwscreen->format->Bloss, _hwscreen->format->Aloss, + 8 - _hwscreen->format->Rloss, 8 - _hwscreen->format->Gloss, + 8 - _hwscreen->format->Bloss, 8 - _hwscreen->format->Aloss, _hwscreen->format->Rshift, _hwscreen->format->Gshift, _hwscreen->format->Bshift, _hwscreen->format->Ashift); |
