aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/wincesdl/wincesdl-graphics.cpp
diff options
context:
space:
mode:
authorCameron Cawley2019-09-20 22:10:59 +0100
committerFilippos Karapetis2019-09-21 22:19:07 +0300
commit1699a2e1cf0110ccd5a5832f7caed42b1e102bf1 (patch)
tree872ec8c05b6667d1aa900bbe73e839085e7b74f0 /backends/graphics/wincesdl/wincesdl-graphics.cpp
parent500e200719098f45780260ecf05a0ecb68438932 (diff)
downloadscummvm-rg350-1699a2e1cf0110ccd5a5832f7caed42b1e102bf1.tar.gz
scummvm-rg350-1699a2e1cf0110ccd5a5832f7caed42b1e102bf1.tar.bz2
scummvm-rg350-1699a2e1cf0110ccd5a5832f7caed42b1e102bf1.zip
SURFACESDL: Properly distinguish between 555 and 565 modes
Diffstat (limited to 'backends/graphics/wincesdl/wincesdl-graphics.cpp')
-rw-r--r--backends/graphics/wincesdl/wincesdl-graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/wincesdl/wincesdl-graphics.cpp b/backends/graphics/wincesdl/wincesdl-graphics.cpp
index 9bfcd64079..caaba1a7dc 100644
--- a/backends/graphics/wincesdl/wincesdl-graphics.cpp
+++ b/backends/graphics/wincesdl/wincesdl-graphics.cpp
@@ -884,7 +884,7 @@ bool WINCESdlGraphicsManager::loadGFXMode() {
// Create the surface used for the graphics in 16 bit before scaling, and also the overlay
// Distinguish 555 and 565 mode
- if (_hwScreen->format->Rmask == 0x7C00)
+ if (_hwScreen->format->Gmask == 0x3E0)
InitScalers(555);
else
InitScalers(565);