Added offset mode disable to 8 bit new gfx engine
This commit is contained in:
@@ -2611,22 +2611,24 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
|||||||
add ecx,ebx
|
add ecx,ebx
|
||||||
jmp %%yesmosaic
|
jmp %%yesmosaic
|
||||||
%%nomosaic
|
%%nomosaic
|
||||||
|
|
||||||
cmp byte[BGMA+ebx],5
|
cmp byte[BGMA+ebx],5
|
||||||
jae near .tiles16x8
|
jae near .tiles16x8
|
||||||
%%yesmosaic
|
%%yesmosaic
|
||||||
|
|
||||||
cmp byte[t16x161+ebx+%1*256],1
|
cmp byte[t16x161+ebx+%1*256],1
|
||||||
je near .tiles16x16
|
je near .tiles16x16
|
||||||
|
cmp byte[osm2dis],1
|
||||||
|
je .nooffsetm
|
||||||
cmp byte[BGMA+ebx],2
|
cmp byte[BGMA+ebx],2
|
||||||
je near .offsetm
|
je near .offsetm
|
||||||
cmp byte[BGMA+ebx],4
|
.nooffsetm
|
||||||
je near .offsetm
|
|
||||||
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
|
cmp byte[BGMA+ebx],4
|
||||||
je near .offsetm
|
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]
|
||||||
@@ -3080,10 +3082,13 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
|||||||
%%yesmosaic
|
%%yesmosaic
|
||||||
cmp byte[t16x161+ebx+%1*256],1
|
cmp byte[t16x161+ebx+%1*256],1
|
||||||
je near .tiles16x16
|
je near .tiles16x16
|
||||||
|
cmp byte[osm2dis],1
|
||||||
|
je .nooffsetm
|
||||||
cmp byte[BGMA+ebx],2
|
cmp byte[BGMA+ebx],2
|
||||||
je near .offsetm
|
je near .offsetm
|
||||||
cmp byte[BGMA+ebx],4
|
; cmp byte[BGMA+ebx],4
|
||||||
je near .offsetm
|
; je near .offsetm
|
||||||
|
.nooffsetm
|
||||||
mov eax,[BG1SYl+ebx*2+%1*512]
|
mov eax,[BG1SYl+ebx*2+%1*512]
|
||||||
and eax,0FFFFh
|
and eax,0FFFFh
|
||||||
add eax,ebx
|
add eax,ebx
|
||||||
|
|||||||
Reference in New Issue
Block a user