From 39cbfbb03fc9fbef1402738df3ed8f79faadccaf Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 30 May 2016 22:21:49 +0100 Subject: GNAP: Fix sprites display on big endian systems --- engines/gnap/gamesys.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/gnap/gamesys.cpp') diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp index d1f2c8944f..f56974fda6 100644 --- a/engines/gnap/gamesys.cpp +++ b/engines/gnap/gamesys.cpp @@ -249,7 +249,11 @@ void GameSys::drawSpriteToBackground(int x, int y, int resourceId) { Graphics::Surface *GameSys::allocSurface(int width, int height) { Graphics::Surface *surface = new Graphics::Surface(); surface->create(width, height, _backgroundSurface->format); +#if defined(SCUMM_BIG_ENDIAN) + surface->fillRect(Common::Rect(0, 0, surface->w, surface->h), 0x00FFFFFF); +#else surface->fillRect(Common::Rect(0, 0, surface->w, surface->h), 0xFFFFFF00); +#endif return surface; } -- cgit v1.2.3