Window logic update, Gradius now working great

This commit is contained in:
pagefault
2005-03-27 22:07:10 +00:00
parent 985dccf360
commit 9f1311fbf0

View File

@@ -2555,36 +2555,35 @@ NEWSYM drawbg4linepr116b
NEWSYM drawsprng16b NEWSYM drawsprng16b
test byte[BGMS1+ebx*2],10h test byte[BGMS1+ebx*2],10h
jz .nosubmain jz .nosubmain
mov edi,[CSubWinScr]
test byte[FillSubScr+ebx],2 test byte[FillSubScr+ebx],2
jnz near drawsprng16bt jnz near drawsprng16bt
jmp .nosubmain
mov edi,[CMainWinScr] mov edi,[CMainWinScr]
cmp byte[edi+ebx+4*256],0 cmp byte[edi+ebx+4*256],0
je .nosubmain je .submain
jmp .nosubmain
.submain .submain
test byte[FillSubScr+ebx],1 test byte[FillSubScr+ebx],1
jnz near drawsprng16bt jnz near drawsprng16bt
.nosubmain .nosubmain
mov ebp,[cpalval+ebx*4] mov ebp,[cpalval+ebx*4]
xor eax,eax xor eax,eax
mov edi,[CMainWinScr]
test byte[FillSubScr+ebx],1 test byte[FillSubScr+ebx],1
jz .main2 jz .main2
test byte[BGMS1+ebx*2],10h test byte[BGMS1+ebx*2],10h
jnz .main2 jnz .main2
mov edi,[CSubWinScr] mov edi,[CSubWinScr]
cmp byte[edi+ebx+4*256],0
jne near drawsprngw16b
.main2 .main2
test byte[FillSubScr+ebx],1 test byte[FillSubScr+ebx],1
jnz .main jnz .nodo
test byte[BGMS1+ebx*2],10h
jz .main
add esi,75036*2
mov edi,[CMainWinScr]
cmp byte[edi+ebx+4*256],0 cmp byte[edi+ebx+4*256],0
jne .main jne near drawsprngw16b
sub esi,75036*2 .nodo
test byte[FillSubScr+ebx],1
jz .main
test byte[BGMS1+ebx*2],10h
jnz .main
add esi,75036*2
.main .main
xor edi,edi xor edi,edi
normalsprng16b sprdrawpra16bng,sprdrawprb16bng normalsprng16b sprdrawpra16bng,sprdrawprb16bng