More mode 4 fixes

This commit is contained in:
pagefault
2002-09-11 01:59:52 +00:00
parent 03458c1e74
commit 325cf91511
2 changed files with 9 additions and 10 deletions

View File

@@ -2620,15 +2620,14 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2
je .nooffsetm je .nooffsetm
cmp byte[BGMA+ebx],2 cmp byte[BGMA+ebx],2
je near .offsetm je near .offsetm
cmp byte[bgmode],4
je .nooffsetm
cmp byte[BGMA+ebx],4
je near .offsetm
.nooffsetm .nooffsetm
mov eax,[BGPT1+ebx*2+%1*512] mov eax,[BGPT1+ebx*2+%1*512]
test ecx,100h test ecx,100h
jz .noyinc jz .noyinc
cmp byte[osm2dis],1
je .nooffsetm4
cmp byte[BGMA+ebx],4
je near .offsetm
.nooffsetm4
add eax,[BGPT1Y+ebx*2+%1*512] add eax,[BGPT1Y+ebx*2+%1*512]
.noyinc .noyinc
lea ecx,[ecx*8] lea ecx,[ecx*8]

View File

@@ -2830,17 +2830,17 @@ EXTSYM osm2dis
je .nooffsetm je .nooffsetm
cmp byte[BGMA+ebx],2 cmp byte[BGMA+ebx],2
je near .offsetm je near .offsetm
cmp byte[bgmode],4
je .nooffsetm4
cmp byte[BGMA+ebx],4
je near .offsetm
.nooffsetm4
cmp byte[t16x161+ebx+%1*256],1 cmp byte[t16x161+ebx+%1*256],1
je near .tiles16x16 je near .tiles16x16
.nooffsetm .nooffsetm
mov eax,[BGPT1+ebx*2+%1*512] mov eax,[BGPT1+ebx*2+%1*512]
test ecx,100h test ecx,100h
jz .noyinc jz .noyinc
cmp byte[osm2dis],1
je .nooffsetm4
cmp byte[BGMA+ebx],4
je near .offsetm
.nooffsetm4
add eax,[BGPT1Y+ebx*2+%1*512] add eax,[BGPT1Y+ebx*2+%1*512]
.noyinc .noyinc
lea ecx,[ecx*8] lea ecx,[ecx*8]