aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/gfx.cpp')
-rw-r--r--source/gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gfx.cpp b/source/gfx.cpp
index 9ea0a97..438e094 100644
--- a/source/gfx.cpp
+++ b/source/gfx.cpp
@@ -2517,7 +2517,8 @@ static void DrawBackground (uint32 BGMode, uint32 bg, uint8 Z1, uint8 Z2)
Count = 8 - Offset;
if (Count > Width)
Count = Width;
- s -= Offset * GFX.PixSize;
+// if (s >= Offset * GFX.PixSize)
+ s -= Offset * GFX.PixSize;
Tile = READ_2BYTES(t);
GFX.Z1 = GFX.Z2 = depths [(Tile & 0x2000) >> 13];