State sizes now calculated on game load. Thumbnail only displayed if in the ZST.

This commit is contained in:
n-a-c-h
2005-02-01 13:38:19 +00:00
parent d7ccad2933
commit cc66b807b9
3 changed files with 52 additions and 18 deletions

View File

@@ -67,6 +67,8 @@ EXTSYM vidbufferofsb
;EXTSYM Super2xSaI
EXTSYM HalfTransB,HalfTransC
EXTSYM cur_zst_size,old_zst_size
%ifdef __MSDOS__
EXTSYM SB_blank
%endif
@@ -1306,18 +1308,18 @@ GetPicture:
call File_Seek_End
shl edx,16
mov dx,ax
;Just draw! - If you want to make it exact, you set all the sizes
;cmp edx,266879+64*56*2
;je .draw
;cmp edx,398643+64*56*2
;je .draw
;cmp edx,400692+64*56*2
;je .draw
;cmp edx,275071+64*56*2
;je .draw
;jmp .nodraw
;.draw
sub edx,64*56*2
push eax
sub edx,64*56*2 ;Size of thumbnail
mov eax,[cur_zst_size]
cmp edx,eax
je .draw
mov eax,[old_zst_size]
cmp edx,eax
je .draw
pop eax
jmp .nodraw
.draw
pop eax
mov ax,dx
shr edx,16
mov cx,dx