Variable write size error [Thanks TRAC!]

This commit is contained in:
zsknight
2001-04-15 07:58:09 +00:00
parent 35cdb86e55
commit 015fdf1070
2 changed files with 6 additions and 4 deletions

View File

@@ -300,8 +300,9 @@ NEWSYM newengine8b
jne .dontdraw jne .dontdraw
mov dword[scfbl],0 mov dword[scfbl],0
.dontdraw .dontdraw
mov [BGFB+eax],ebx ; Variable size write error fix [TRAC]
cmp [BGFB+eax-1],bx mov [BGFB+eax],bl
cmp [BGFB+eax-1],bl
je .nosbgfb je .nosbgfb
mov byte[bgallchange+eax],1 mov byte[bgallchange+eax],1
.nosbgfb .nosbgfb

View File

@@ -782,8 +782,9 @@ NEWSYM newengine16b
jne .dontdraw jne .dontdraw
mov dword[scfbl],0 mov dword[scfbl],0
.dontdraw .dontdraw
mov [BGFB+eax],ebx ; Variable size write error fix [TRAC]
cmp [BGFB+eax-1],bx mov [BGFB+eax],bl
cmp [BGFB+eax-1],bl
je .nosbgfb je .nosbgfb
mov byte[bgallchange+eax],1 mov byte[bgallchange+eax],1
.nosbgfb .nosbgfb