projects
/
drnoksnes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
disabling inline set/gets + enable sa-1 c cpu
[drnoksnes]
/
gfx.cpp
diff --git
a/gfx.cpp
b/gfx.cpp
index
6889b82
..
a22ce72
100644
(file)
--- a/
gfx.cpp
+++ b/
gfx.cpp
@@
-1502,7
+1502,8
@@
void DrawBackgroundMode5 (uint32 /* BGMODE */, uint32 bg, uint8 Z1, uint8 Z2)
Count = 8 - Offset;
if (Count > Width)
Count = Width;
- s -= (Offset>>1);
+ if (s) // XXX: Workaround for underflow (Secret of MANA)
+ s -= (Offset>>1);
Tile = READ_2BYTES (t);
GFX.Z1 = GFX.Z2 = depths [(Tile & 0x2000) >> 13];