Workaround to fix crashing of certain games (Sim City Pal and Super Tetris 2 + Bombliss) on resolution change.
This commit is contained in:
@@ -2382,6 +2382,8 @@ NEWSYM drawbg4linepr116b
|
|||||||
.loopobj2
|
.loopobj2
|
||||||
test byte[esi+7],20h
|
test byte[esi+7],20h
|
||||||
jnz near .drawspriteflipx2
|
jnz near .drawspriteflipx2
|
||||||
|
or byte[esi+4],0 ;this prevents some games from crashing
|
||||||
|
jz near .exitnow
|
||||||
mov bx,[esi]
|
mov bx,[esi]
|
||||||
mov ch,[esi+6]
|
mov ch,[esi+6]
|
||||||
mov esi,[esi+2]
|
mov esi,[esi+2]
|
||||||
@@ -2390,6 +2392,7 @@ NEWSYM drawbg4linepr116b
|
|||||||
mov esi,edx
|
mov esi,edx
|
||||||
dec cl
|
dec cl
|
||||||
jnz near .loopobj2
|
jnz near .loopobj2
|
||||||
|
.exitnow
|
||||||
pop ebx
|
pop ebx
|
||||||
pop esi
|
pop esi
|
||||||
ret
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user