diff --git a/zsnes/src/video/newgfx.mac b/zsnes/src/video/newgfx.mac index 4a222669..b5c020ff 100644 --- a/zsnes/src/video/newgfx.mac +++ b/zsnes/src/video/newgfx.mac @@ -2620,15 +2620,14 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2 je .nooffsetm cmp byte[BGMA+ebx],2 je near .offsetm + cmp byte[bgmode],4 + je .nooffsetm + cmp byte[BGMA+ebx],4 + je near .offsetm .nooffsetm mov eax,[BGPT1+ebx*2+%1*512] test ecx,100h jz .noyinc - cmp byte[osm2dis],1 - je .nooffsetm4 - cmp byte[BGMA+ebx],4 - je near .offsetm -.nooffsetm4 add eax,[BGPT1Y+ebx*2+%1*512] .noyinc lea ecx,[ecx*8] diff --git a/zsnes/src/video/newgfx16.mac b/zsnes/src/video/newgfx16.mac index af9a3ba1..ba55ba1d 100644 --- a/zsnes/src/video/newgfx16.mac +++ b/zsnes/src/video/newgfx16.mac @@ -2830,17 +2830,17 @@ EXTSYM osm2dis je .nooffsetm cmp byte[BGMA+ebx],2 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 je near .tiles16x16 .nooffsetm mov eax,[BGPT1+ebx*2+%1*512] test ecx,100h jz .noyinc - cmp byte[osm2dis],1 - je .nooffsetm4 - cmp byte[BGMA+ebx],4 - je near .offsetm -.nooffsetm4 add eax,[BGPT1Y+ebx*2+%1*512] .noyinc lea ecx,[ecx*8]