[Scummvm-git-logs] scummvm master -> 1699a2e1cf0110ccd5a5832f7caed42b1e102bf1

bluegr bluegr at gmail.com
Sat Sep 21 21:19:10 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1699a2e1cf SURFACESDL: Properly distinguish between 555 and 565 modes


Commit: 1699a2e1cf0110ccd5a5832f7caed42b1e102bf1
    https://github.com/scummvm/scummvm/commit/1699a2e1cf0110ccd5a5832f7caed42b1e102bf1
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-09-21T22:19:07+03:00

Commit Message:
SURFACESDL: Properly distinguish between 555 and 565 modes

Changed paths:
    backends/graphics/surfacesdl/surfacesdl-graphics.cpp
    backends/graphics/wincesdl/wincesdl-graphics.cpp


diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 6434e5c..052ae37 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -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);
diff --git a/backends/graphics/wincesdl/wincesdl-graphics.cpp b/backends/graphics/wincesdl/wincesdl-graphics.cpp
index 9bfcd64..caaba1a 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);





More information about the Scummvm-git-logs mailing list