Updated windowing code, fixes for various games.

This commit is contained in:
pagefault
2005-03-28 22:23:16 +00:00
parent 2716e509da
commit 22be254d9a

View File

@@ -2555,15 +2555,23 @@ NEWSYM drawbg4linepr116b
NEWSYM drawsprng16b NEWSYM drawsprng16b
test byte[BGMS1+ebx*2],10h test byte[BGMS1+ebx*2],10h
jz .nosubmain jz .nosubmain
xor eax,eax
mov al,[BGMS1+ebx*2]
sub al,[FillSubScr+ebx]
test al,04h
jnz .nosub2
xor eax,eax
.nosub2
test byte[BGMS1+ebx*2],1h
jz .submain
test byte[FillSubScr+ebx],2 test byte[FillSubScr+ebx],2
jnz near drawsprng16bt jnz .submain
cmp eax,0
je .nosubmain
mov edi,[CMainWinScr] mov edi,[CMainWinScr]
cmp byte[edi+ebx+4*256],0
je .submain
jmp .nosubmain
.submain .submain
test byte[FillSubScr+ebx],1 test byte[FillSubScr+ebx],1
jnz near drawsprng16bt jne near drawsprng16bt
.nosubmain .nosubmain
mov ebp,[cpalval+ebx*4] mov ebp,[cpalval+ebx*4]
xor eax,eax xor eax,eax