aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.cpp
diff options
context:
space:
mode:
authoraliaspider2014-10-28 05:39:03 +0100
committeraliaspider2014-10-28 05:39:03 +0100
commit76fef9625dd83399979a653b74f377f730725a70 (patch)
treef043e3774bc36acd7af98a2e8c3beb4a6fcbbf88 /source/gfx.cpp
parent5a96997f186b2cff1a24ed5572430fe0f031e8d3 (diff)
downloadsnes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.gz
snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.bz2
snes9x2005-76fef9625dd83399979a653b74f377f730725a70.zip
64-bit safer
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];