Better switch full screen fix

This commit is contained in:
pagefault
2001-08-24 21:40:55 +00:00
parent de4d605413
commit ad9df5d662
3 changed files with 16 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
EXTSYM ZsnesPage
EXTSYM GetLocalTime
EXTSYM V8Mode,GrayscaleMode
EXTSYM PrevWinMode
NEWSYM WinIntRFAsmStart
@@ -816,6 +817,13 @@ NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
call initwinvideo
popad
xor eax,eax
mov al,[cvidmode]
cmp byte[GUIWFVID+eax],1
je .noprevwinmode
mov byte[PrevWinMode],al
.noprevwinmode
cmp dword[firstvideo],1
je .skipinitgfx
pushad