mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
SURFACESDL: Properly distinguish between 555 and 565 modes
This commit is contained in:
parent
500e200719
commit
1699a2e1cf
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user