Overlay update

This commit is contained in:
pagefault
2001-06-15 04:42:56 +00:00
parent 307aec6fcd
commit 5d36f63367
4 changed files with 166 additions and 80 deletions

View File

@@ -818,6 +818,13 @@ GUIOptionKeys:
xor byte[vsyncon],1
mov al,[vsyncon]
mov [cfgvsync],al
%ifdef __WIN32__
cmp byte[OverlayEnabled],1
jne .novsync
pushad
call initDirectDraw
popad
%endif
.novsync
%endif
cmp dh,'M'
@@ -892,6 +899,9 @@ GUIOptionKeys:
cmp dh,'Y'
jne .nooverlay
xor byte[OverlayEnabled],1
pushad
call initDirectDraw
popad
.nooverlay
cmp dh,'S'
jne .noalttimer