Fixed bugs in fullscreen button

This commit is contained in:
pagefault
2001-08-24 21:02:56 +00:00
parent 8faa507fdc
commit 322c15ffc9
3 changed files with 6 additions and 10 deletions

View File

@@ -497,8 +497,8 @@ prevloadl db 0
prevloaddnamel times 512*10 db 0 prevloaddnamel times 512*10 db 0
prevloadfnamel times 512*10 db 0 prevloadfnamel times 512*10 db 0
PrevWinMode db 1 NEWSYM PrevWinMode, db 1
PrevFSMode db 5 NEWSYM PrevFSMode, db 5
OldWinPos db 0 OldWinPos db 0
GUIwinposx dd 0,5 ,60 ,30 ,55 ,50 ,65 ,5 ,30 ,20 ,10 ,80 ,65 ,20 ,70 ,50 ,3 ,50 GUIwinposx dd 0,5 ,60 ,30 ,55 ,50 ,65 ,5 ,30 ,20 ,10 ,80 ,65 ,20 ,70 ,50 ,3 ,50
@@ -1490,12 +1490,6 @@ NEWSYM StartGUI
; jbe .dosport ; jbe .dosport
%ifndef __MSDOS__ %ifndef __MSDOS__
mov byte[sampratenext+3],0 mov byte[sampratenext+3],0
%endif
%ifdef __WIN32__
cmp byte[PrevFSMode],5
jne .notvm5
mov byte[PrevFSMode],7
.notvm5
%endif %endif
cmp byte[TripBufAvail],0 cmp byte[TripBufAvail],0

View File

@@ -833,10 +833,10 @@ GUIProcVideo:
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIWFVID+eax],1 cmp byte[GUIWFVID+eax],1
je .fullsc je .fullsc
mov [PrevWinMode],al mov byte[PrevWinMode],al
ret ret
.fullsc .fullsc
mov [PrevFSMode],al mov byte[PrevFSMode],al
ret ret
.failed .failed
mov byte[videotroub],0 mov byte[videotroub],0

View File

@@ -1491,6 +1491,7 @@ extern unsigned char cvidmode;
DWORD FirstVid=1; DWORD FirstVid=1;
DWORD FirstFull=1; DWORD FirstFull=1;
extern BYTE GUIWFVID[]; extern BYTE GUIWFVID[];
extern BYTE PrevWinMode;
void clearwin(); void clearwin();
char WinName[]={"ZSNESW\0"}; char WinName[]={"ZSNESW\0"};
@@ -1511,6 +1512,7 @@ void initwinvideo(void)
X=0; X=0;
Y=0; Y=0;
FullScreen=GUIWFVID[cvidmode]; FullScreen=GUIWFVID[cvidmode];
if (GUIWFVID[cvidmode] == 0) PrevWinMode = cvidmode;
switch (cvidmode) switch (cvidmode)
{ {