aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap
diff options
context:
space:
mode:
authorThierry Crozat2016-05-30 22:51:45 +0100
committerThierry Crozat2016-05-30 22:51:45 +0100
commita7bd346f2d7d0dcd71050daba1be01716b19eb44 (patch)
treef88a8aed9ba0e3c1d72ef44f0d366b6c47da2234 /engines/gnap
parent39cbfbb03fc9fbef1402738df3ed8f79faadccaf (diff)
downloadscummvm-rg350-a7bd346f2d7d0dcd71050daba1be01716b19eb44.tar.gz
scummvm-rg350-a7bd346f2d7d0dcd71050daba1be01716b19eb44.tar.bz2
scummvm-rg350-a7bd346f2d7d0dcd71050daba1be01716b19eb44.zip
GNAP: Simplify transparency handling on BE systems
Diffstat (limited to 'engines/gnap')
-rw-r--r--engines/gnap/gamesys.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp
index f56974fda6..d31854d06e 100644
--- a/engines/gnap/gamesys.cpp
+++ b/engines/gnap/gamesys.cpp
@@ -249,11 +249,7 @@ 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;
}
@@ -646,9 +642,9 @@ void GameSys::blitSurface32(Graphics::Surface *destSurface, int x, int y, Graphi
byte *rsrc = src;
byte *rdst = dst;
for (int xc = 0; xc < width; ++xc) {
- uint32 pixel = READ_LE_UINT32(rsrc);
+ uint32 pixel = READ_UINT32(rsrc);
if (!transparent || pixel != 0xFFFFFF00)
- WRITE_LE_UINT32(rdst, pixel);
+ WRITE_UINT32(rdst, pixel);
rsrc += 4;
rdst += 4;
}