Another switch fullscreen fix

This commit is contained in:
pagefault
2001-08-24 22:45:19 +00:00
parent c1e33fb082
commit d38ae99543
4 changed files with 20 additions and 18 deletions

View File

@@ -498,7 +498,12 @@ prevloaddnamel times 512*10 db 0
prevloadfnamel times 512*10 db 0 prevloadfnamel times 512*10 db 0
NEWSYM PrevWinMode, db 0 NEWSYM PrevWinMode, db 0
NEWSYM PrevFSMode, db 0 %ifdef __WIN32__
NEWSYM PrevFSMode, db 6
%endif
%ifdef __LINUX__
NEWSYM PrevFSMode, db 3
%endif
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

View File

@@ -829,15 +829,6 @@ GUIProcVideo:
cmp dword[GUIkeydelay],0 cmp dword[GUIkeydelay],0
je .failed2 je .failed2
mov dword[GUIkeydelay],0 mov dword[GUIkeydelay],0
xor eax,eax
mov al,[cvidmode]
cmp byte[GUIWFVID+eax],1
je .fullsc
mov byte[PrevWinMode],al
ret
.fullsc
mov byte[PrevFSMode],al
ret
.failed .failed
mov byte[videotroub],0 mov byte[videotroub],0
mov al,[.prevvid] mov al,[.prevvid]

View File

@@ -121,7 +121,7 @@ EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
EXTSYM ZsnesPage EXTSYM ZsnesPage
EXTSYM GetLocalTime EXTSYM GetLocalTime
EXTSYM V8Mode,GrayscaleMode EXTSYM V8Mode,GrayscaleMode
EXTSYM PrevWinMode EXTSYM PrevWinMode,PrevFSMode
NEWSYM WinIntRFAsmStart NEWSYM WinIntRFAsmStart
@@ -819,10 +819,13 @@ NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIWFVID+eax],1 cmp byte[GUIWFVID+eax],0
je .noprevwinmode je .prevwinmode
mov byte[PrevFSMode],al
jmp .doneprevmode
.prevwinmode
mov byte[PrevWinMode],al mov byte[PrevWinMode],al
.noprevwinmode .doneprevmode
cmp dword[firstvideo],1 cmp dword[firstvideo],1
je .skipinitgfx je .skipinitgfx

View File

@@ -133,7 +133,7 @@ EXTSYM UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2 EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
EXTSYM ZsnesPage EXTSYM ZsnesPage
EXTSYM V8Mode,GrayscaleMode EXTSYM V8Mode,GrayscaleMode
EXTSYM PrevWinMode EXTSYM PrevWinMode,PrevFSMode
EXTSYM _imp__GetLocalTime@4 EXTSYM _imp__GetLocalTime@4
@@ -1097,10 +1097,13 @@ NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIWFVID+eax],1 cmp byte[GUIWFVID+eax],0
je .noprevwinmode je .prevwinmode
mov byte[PrevFSMode],al
jmp .doneprevmode
.prevwinmode
mov byte[PrevWinMode],al mov byte[PrevWinMode],al
.noprevwinmode .doneprevmode
cmp dword[firstvideo],1 cmp dword[firstvideo],1
je .skipinitgfx je .skipinitgfx