[Scummvm-cvs-logs] scummvm master -> 1f2095b066bac6f212efed8ec5084dc204b26559

Strangerke Strangerke at scummvm.org
Mon May 30 21:47:58 CEST 2016


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:
1f2095b066 GNAP: (hopefully) fix display on BE systems


Commit: 1f2095b066bac6f212efed8ec5084dc204b26559
    https://github.com/scummvm/scummvm/commit/1f2095b066bac6f212efed8ec5084dc204b26559
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-05-30T21:39:12+02:00

Commit Message:
GNAP: (hopefully) fix display on BE systems

Changed paths:
    engines/gnap/gnap.cpp



diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index f6c758b..c9ea940 100644
--- a/engines/gnap/gnap.cpp
+++ b/engines/gnap/gnap.cpp
@@ -173,7 +173,11 @@ GnapEngine::~GnapEngine() {
 
 Common::Error GnapEngine::run() {
 	// Initialize the graphics mode to RGBA8888
+#if defined(SCUMM_BIG_ENDIAN)
+	Graphics::PixelFormat format = Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24);
+#else
 	Graphics::PixelFormat format = Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0);
+#endif
 	initGraphics(800, 600, true, &format);
 
 	// We do not support color conversion yet






More information about the Scummvm-git-logs mailing list