SURFACESDL: Properly distinguish between 555 and 565 modes

This commit is contained in:
Cameron Cawley 2019-09-20 22:10:59 +01:00 committed by Filippos Karapetis
parent 500e200719
commit 1699a2e1cf
2 changed files with 2 additions and 2 deletions

View File

@ -1062,7 +1062,7 @@ bool SurfaceSdlGraphicsManager::loadGFXMode() {
error("allocating _tmpscreen2 failed");
// Distinguish 555 and 565 mode
if (_hwScreen->format->Rmask == 0x7C00)
if (_hwScreen->format->Gmask == 0x3E0)
InitScalers(555);
else
InitScalers(565);

View File

@ -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);