Fixed video change freeze problems in SDL port. Changed video change key to spacebar.
This commit is contained in:
@@ -2851,62 +2851,18 @@ 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
|
||||||
|
|
||||||
call JoyRead
|
|
||||||
xor ebx,ebx
|
|
||||||
mov ecx,256+128+64
|
|
||||||
.b2
|
|
||||||
cmp byte[pressed+ebx],0
|
|
||||||
jne near .pressedfail
|
|
||||||
inc ebx
|
|
||||||
dec ecx
|
|
||||||
jnz .b2
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis3
|
|
||||||
call Get_MouseData
|
|
||||||
test bx,01h
|
|
||||||
jnz near .pressedfail
|
|
||||||
.mousedis3
|
|
||||||
|
|
||||||
.again
|
.again
|
||||||
call JoyRead
|
call JoyRead
|
||||||
xor ebx,ebx
|
cmp byte[pressed+39h],0
|
||||||
mov ecx,256+128+64
|
|
||||||
.b
|
|
||||||
cmp byte[pressed+ebx],0
|
|
||||||
jne .pressedokay
|
jne .pressedokay
|
||||||
inc ebx
|
|
||||||
dec ecx
|
|
||||||
jnz .b
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis
|
|
||||||
call Get_MouseData
|
|
||||||
test bx,01h
|
|
||||||
jnz .pressedokay
|
|
||||||
.mousedis
|
|
||||||
cmp dword[GUIkeydelay],0
|
|
||||||
je .pressedokay
|
|
||||||
jmp .again
|
jmp .again
|
||||||
.pressedokay
|
.pressedokay
|
||||||
.again2
|
|
||||||
call Check_Key
|
|
||||||
or al,al
|
|
||||||
jz .nokey
|
|
||||||
call Get_Key
|
|
||||||
jmp .again2
|
|
||||||
.nokey
|
|
||||||
cmp byte[MouseDis],1
|
|
||||||
je .mousedis2
|
|
||||||
push ebx
|
|
||||||
; mov eax,0Bh
|
|
||||||
; int 33h
|
|
||||||
pop ebx
|
|
||||||
.mousedis2
|
|
||||||
mov byte[GUIpclicked],1
|
mov byte[GUIpclicked],1
|
||||||
ret
|
ret
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
guipostvidmsg1 db 'VIDEO MODE CHANGED.',0
|
guipostvidmsg1 db 'VIDEO MODE CHANGED.',0
|
||||||
guipostvidmsg2 db 'PRESS ANY KEY',0
|
guipostvidmsg2 db 'PRESS SPACEBAR',0
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
guipostvideofail:
|
guipostvideofail:
|
||||||
|
|||||||
Reference in New Issue
Block a user