Fixed gfx bug when resetting game with 2xSaI engine on

This commit is contained in:
pagefault
2001-08-03 03:34:23 +00:00
parent 4652d33402
commit 78fef43549
3 changed files with 6 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ EXTSYM PJoyAOrig,PJoyBOrig,PJoyCOrig,PJoyDOrig,PJoyEOrig
EXTSYM GetHostName EXTSYM GetHostName
EXTSYM vramaddr,curypos,ClearRegs,vram,sndrot,regsbackup EXTSYM vramaddr,curypos,ClearRegs,vram,sndrot,regsbackup
EXTSYM GetScreen,GUITBWVID EXTSYM GetScreen,GUITBWVID
EXTSYM Clear2xSaIBuffer
EXTSYM MouseWindow EXTSYM MouseWindow
EXTSYM GotoHomepage EXTSYM GotoHomepage
EXTSYM cfgcvidmode, ExitFromGUI EXTSYM cfgcvidmode, ExitFromGUI

View File

@@ -449,6 +449,10 @@ SetDevice:
NEWSYM GUIDoReset NEWSYM GUIDoReset
call ClearScreen call ClearScreen
cmp byte[En2xSaI],1
jnae .noclear2xsai
call Clear2xSaIBuffer
.noclear2xsai
; mov byte[NetPlayNoMore],1 ; mov byte[NetPlayNoMore],1
mov byte[RestoreValues],0 mov byte[RestoreValues],0

View File

@@ -15,7 +15,7 @@
;along with this program; if not, write to the Free Software ;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
EXTSYM Clear2xSaIBuffer
%ifdef __WIN32__ %ifdef __WIN32__
EXTSYM CheckPriority EXTSYM CheckPriority
EXTSYM CheckAlwaysOnTop EXTSYM CheckAlwaysOnTop