From b6b1e01c2f8333d3031dfc20dd9fe4a48451e932 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Sun, 20 Jul 2003 23:19:44 +0000 Subject: [PATCH] Added KitchenSync video option to GUI --- zsnes/src/gui/gui.asm | 1 + zsnes/src/gui/guikeys.inc | 4 ++++ zsnes/src/gui/guimouse.inc | 1 + zsnes/src/gui/guiwindp.inc | 9 +++++++++ 4 files changed, 15 insertions(+) diff --git a/zsnes/src/gui/gui.asm b/zsnes/src/gui/gui.asm index 502ae6e2..6982fb94 100644 --- a/zsnes/src/gui/gui.asm +++ b/zsnes/src/gui/gui.asm @@ -601,6 +601,7 @@ NEWSYM KeyIncStateSlot, dd 0 NEWSYM KeyDecStateSlot, dd 0 NEWSYM KeyUsePlayer1234, dd 0 NEWSYM hq3xFilter, db 0 +NEWSYM KitchenSync, db 0 GUIsave equ $-GUIRAdd diff --git a/zsnes/src/gui/guikeys.inc b/zsnes/src/gui/guikeys.inc index a83f6aec..c4df359a 100644 --- a/zsnes/src/gui/guikeys.inc +++ b/zsnes/src/gui/guikeys.inc @@ -1225,6 +1225,10 @@ GUIVideoKeys: ; mov byte[Triplebufen],0 %endif .novsync + cmp dh,'K' + jne .nokitchensync + xor byte[KitchenSync],1 +.nokitchensync %endif ret diff --git a/zsnes/src/gui/guimouse.inc b/zsnes/src/gui/guimouse.inc index 33913da1..64ed8f31 100644 --- a/zsnes/src/gui/guimouse.inc +++ b/zsnes/src/gui/guimouse.inc @@ -2328,6 +2328,7 @@ DisplayGUIVideoClick: GUIClickCButton 11,183,byte[GrayscaleMode] %ifdef __WIN32__ GUIClickCButtonf 115,183,byte[vsyncon],initDirectDraw + GUIClickCButton 83,173,byte[KitchenSync] %endif %ifdef __MSDOS__ GUIClickCButtonT 115,183,byte[vsyncon],byte[Triplebufen] diff --git a/zsnes/src/gui/guiwindp.inc b/zsnes/src/gui/guiwindp.inc index 8fb1b9cb..eafcccfc 100644 --- a/zsnes/src/gui/guiwindp.inc +++ b/zsnes/src/gui/guiwindp.inc @@ -1769,6 +1769,7 @@ DisplayGUIVideo: GUIOuttextwin2u 5,26,188,GUIVideoText8c,0 %ifndef __LINUX__ GUIOuttextwin2u 5,130,188,GUIVideoText9,0 + GUIOuttextwin2u 5,98,178,GUIVideoText10,0 %endif add byte[GUItextcolor],15 @@ -1870,6 +1871,7 @@ DisplayGUIVideo: GUIOuttextwin2 5,25,187,GUIVideoText8c %ifndef __LINUX__ GUIOuttextwin2 5,129,187,GUIVideoText9 + GUIOuttextwin2 5,97,177,GUIVideoText10 %endif DrawGUIButton 5,128,60,164,71,GUIVideoText8,4,0,0 mov al,[GUIWincol] @@ -1994,6 +1996,12 @@ DisplayGUIVideo: mov dword[GUITemp],GUIIconDataCheckBoxC .nocheckboxm74 GUIDisplayIconWin 5,115,183,[GUITemp] + mov dword[GUITemp],GUIIconDataCheckBoxUC + cmp byte[KitchenSync],0 + je .nocheckboxm75 + mov dword[GUITemp],GUIIconDataCheckBoxC +.nocheckboxm75 + GUIDisplayIconWin 5,83,173,[GUITemp] %endif xor eax,eax mov al,[cvidmode] @@ -2167,6 +2175,7 @@ GUIVideoText8b db 'HI-RES M7',0 ; -c GUIVideoText8c db 'GRAYSCALE MODE',0 ; -c GUIVideoText8 db 'SET',0 ; set button GUIVideoText9 db 'VSYNC',0 ; -c +GUIVideoText10 db 'KITCHENSYNC',0 ; -c GUIVideoTextH db 'MODE : ',0 GUIVideoTextw0 db 'LEGEND:',0 GUIVideoTextw1 db ' S = SCALED TO FIT SCREEN',0