State sizes now calculated on game load. Thumbnail only displayed if in the ZST.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user