From f6f99cd854e4fdba402241f85d8cc64674970bdf Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Sun, 6 Feb 2005 11:21:55 +0000 Subject: [PATCH] Fixed video change freeze problems in SDL port. Changed video change key to spacebar. --- zsnes/src/gui/gui.asm | 50 +++---------------------------------------- 1 file changed, 3 insertions(+), 47 deletions(-) diff --git a/zsnes/src/gui/gui.asm b/zsnes/src/gui/gui.asm index 82cf2e16..6b6ad621 100644 --- a/zsnes/src/gui/gui.asm +++ b/zsnes/src/gui/gui.asm @@ -2851,62 +2851,18 @@ guipostvideo: call vidpastecopyscr ; Wait for all mouse and input data to be 0 +.again 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 - call JoyRead - xor ebx,ebx - mov ecx,256+128+64 -.b - cmp byte[pressed+ebx],0 + cmp byte[pressed+39h],0 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 .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 ret SECTION .data guipostvidmsg1 db 'VIDEO MODE CHANGED.',0 -guipostvidmsg2 db 'PRESS ANY KEY',0 +guipostvidmsg2 db 'PRESS SPACEBAR',0 SECTION .text guipostvideofail: