aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2016-05-30 21:39:12 +0200
committerStrangerke2016-05-30 21:39:12 +0200
commit1f2095b066bac6f212efed8ec5084dc204b26559 (patch)
treefccd488a74738bee63c8151a00a92d057052a742
parent0b240ff4a09d2966a181f4368a4a881398bfe379 (diff)
downloadscummvm-rg350-1f2095b066bac6f212efed8ec5084dc204b26559.tar.gz
scummvm-rg350-1f2095b066bac6f212efed8ec5084dc204b26559.tar.bz2
scummvm-rg350-1f2095b066bac6f212efed8ec5084dc204b26559.zip
GNAP: (hopefully) fix display on BE systems
-rw-r--r--engines/gnap/gnap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index f6c758becd..c9ea940933 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