Move KitchenSync option to command line, use -K to enable (case senstive)

This commit is contained in:
pagefault
2003-11-22 20:55:05 +00:00
parent fb00df544f
commit 5be1a8d403
5 changed files with 41 additions and 35 deletions

View File

@@ -602,7 +602,7 @@ NEWSYM KeyIncStateSlot, dd 0
NEWSYM KeyDecStateSlot, dd 0 NEWSYM KeyDecStateSlot, dd 0
NEWSYM KeyUsePlayer1234, dd 0 NEWSYM KeyUsePlayer1234, dd 0
NEWSYM hq3xFilter, db 0 NEWSYM hq3xFilter, db 0
NEWSYM KitchenSync, db 0 NEWSYM RESERVED, db 0
NEWSYM scale2xFilter, db 0 NEWSYM scale2xFilter, db 0
GUIsave equ $-GUIRAdd GUIsave equ $-GUIRAdd

View File

@@ -1238,14 +1238,14 @@ GUIVideoKeys:
; mov byte[Triplebufen],0 ; mov byte[Triplebufen],0
%endif %endif
.novsync .novsync
cmp dh,'K' ; cmp dh,'K'
jne .nokitchensync ; jne .nokitchensync
xor ebx,ebx ; xor ebx,ebx
mov bl,[cvidmode] ; mov bl,[cvidmode]
cmp byte[GUITBWVID+ebx],0 ; cmp byte[GUITBWVID+ebx],0
je .nokitchensync ; je .nokitchensync
xor byte[KitchenSync],1 ; xor byte[KitchenSync],1
.nokitchensync ;.nokitchensync
%endif %endif
ret ret

View File

@@ -2325,12 +2325,12 @@ DisplayGUIVideoClick:
je .nocheckboxttb je .nocheckboxttb
GUIClickCButtonT 11,163,byte[Triplebufen],byte[vsyncon] GUIClickCButtonT 11,163,byte[Triplebufen],byte[vsyncon]
.nocheckboxttb .nocheckboxttb
xor ebx,ebx ; xor ebx,ebx
mov bl,[cvidmode] ; mov bl,[cvidmode]
cmp byte[GUITBWVID+ebx],0 ; cmp byte[GUITBWVID+ebx],0
je .nocheckboxks ; je .nocheckboxks
GUIClickCButton 83,173,byte[KitchenSync] ; GUIClickCButton 83,173,byte[KitchenSync]
.nocheckboxks ;.nocheckboxks
GUIClickCButton 11,183,byte[GrayscaleMode] GUIClickCButton 11,183,byte[GrayscaleMode]
%ifdef __WIN32__ %ifdef __WIN32__
GUIClickCButtonf 115,183,byte[vsyncon],initDirectDraw GUIClickCButtonf 115,183,byte[vsyncon],initDirectDraw

View File

@@ -1758,10 +1758,10 @@ DisplayGUIVideo:
je .notext7 je .notext7
GUIOuttextwin2u 5,26,168,GUIVideoText7,0 GUIOuttextwin2u 5,26,168,GUIVideoText7,0
.notext7 .notext7
cmp byte[GUITBWVID+eax],0 ; cmp byte[GUITBWVID+eax],0
je .notext77 ; je .notext77
GUIOuttextwin2u 5,96,178,GUIVideoText10,0 ; GUIOuttextwin2u 5,96,178,GUIVideoText10,0
.notext77 ;.notext77
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIM7VID+eax],0 cmp byte[GUIM7VID+eax],0
@@ -1875,10 +1875,10 @@ DisplayGUIVideo:
je .notext7b je .notext7b
GUIOuttextwin2 5,25,167,GUIVideoText7 GUIOuttextwin2 5,25,167,GUIVideoText7
.notext7b .notext7b
cmp byte[GUITBWVID+eax],0 ; cmp byte[GUITBWVID+eax],0
je .notext7c ; je .notext7c
GUIOuttextwin2 5,95,177,GUIVideoText10 ; GUIOuttextwin2 5,95,177,GUIVideoText10
.notext7c ;.notext7c
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIM7VID+eax],0 cmp byte[GUIM7VID+eax],0
@@ -2038,17 +2038,17 @@ DisplayGUIVideo:
.nocheckboxm74 .nocheckboxm74
GUIDisplayIconWin 5,115,183,[GUITemp] GUIDisplayIconWin 5,115,183,[GUITemp]
%endif %endif
xor eax,eax ; xor eax,eax
mov al,[cvidmode] ; mov al,[cvidmode]
cmp byte[GUITBWVID+eax],0 ; cmp byte[GUITBWVID+eax],0
je .nocheckboxks2 ; je .nocheckboxks2
mov dword[GUITemp],GUIIconDataCheckBoxUC ; mov dword[GUITemp],GUIIconDataCheckBoxUC
cmp byte[KitchenSync],0 ; cmp byte[KitchenSync],0
je .nocheckboxks ; je .nocheckboxks
mov dword[GUITemp],GUIIconDataCheckBoxC ; mov dword[GUITemp],GUIIconDataCheckBoxC
.nocheckboxks ;.nocheckboxks
GUIDisplayIconWin 5,83,173,[GUITemp] ; GUIDisplayIconWin 5,83,173,[GUITemp]
.nocheckboxks2 ;.nocheckboxks2
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIIEVID+eax],0 cmp byte[GUIIEVID+eax],0
@@ -2233,7 +2233,7 @@ GUIVideoText8b db 'HI-RES M7',0 ; -c
GUIVideoText8c db 'GRAYSCALE MODE',0 ; -c GUIVideoText8c db 'GRAYSCALE MODE',0 ; -c
GUIVideoText8 db 'SET',0 ; set button GUIVideoText8 db 'SET',0 ; set button
GUIVideoText9 db 'VSYNC',0 ; -c GUIVideoText9 db 'VSYNC',0 ; -c
GUIVideoText10 db 'KITCHENSYNC',0 ; -c ;GUIVideoText10 db 'KITCHENSYNC',0 ; -c
GUIVideoTextH db 'MODE : ',0 GUIVideoTextH db 'MODE : ',0
GUIVideoTextw0 db 'LEGEND:',0 GUIVideoTextw0 db 'LEGEND:',0
GUIVideoTextw1 db ' S = SCALED TO FIT SCREEN',0 GUIVideoTextw1 db ' S = SCALED TO FIT SCREEN',0

View File

@@ -32,6 +32,7 @@ extern void displayparams(void);
extern void makeextension(void); extern void makeextension(void);
int pccmdline(void); int pccmdline(void);
extern int KitchenSync = 0;
extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable, extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
MMXSupport, Force8b, ForcePal, GUIClick, MouseDis, MMXSupport, Force8b, ForcePal, GUIClick, MouseDis,
@@ -671,6 +672,11 @@ int pccmdline(void)
MouseDis=1; MouseDis=1;
break; break;
} }
case 'K':
{
KitchenSync=1;
break;
}
case '?': case '?':
{ {
return 9; return 9;