Fixed video fail restore.
This commit is contained in:
@@ -2851,11 +2851,13 @@ guipostvideo:
|
|||||||
call vidpastecopyscr
|
call vidpastecopyscr
|
||||||
; Wait for all mouse and input data to be 0
|
; Wait for all mouse and input data to be 0
|
||||||
|
|
||||||
.again
|
cmp dword[GUIkeydelay],0
|
||||||
|
je .pressedokay
|
||||||
|
|
||||||
call JoyRead
|
call JoyRead
|
||||||
cmp byte[pressed+39h],0
|
cmp byte[pressed+39h],0
|
||||||
jne .pressedokay
|
jne .pressedokay
|
||||||
jmp .again
|
jmp .pressedfail
|
||||||
.pressedokay
|
.pressedokay
|
||||||
mov byte[GUIpclicked],1
|
mov byte[GUIpclicked],1
|
||||||
ret
|
ret
|
||||||
|
|||||||
@@ -844,6 +844,7 @@ GUIProcVideo:
|
|||||||
mov [cfgcvidmode],al
|
mov [cfgcvidmode],al
|
||||||
call initvideo
|
call initvideo
|
||||||
call GUISetPal
|
call GUISetPal
|
||||||
|
call vidpastecopyscr
|
||||||
mov dword[GUIkeydelay],0
|
mov dword[GUIkeydelay],0
|
||||||
ret
|
ret
|
||||||
SECTION .bss
|
SECTION .bss
|
||||||
|
|||||||
Reference in New Issue
Block a user