Last minute changes

This commit is contained in:
pagefault
2001-09-26 20:01:23 +00:00
parent 66b36e5b4b
commit 5105bfc2da
5 changed files with 44 additions and 16 deletions

View File

@@ -552,7 +552,7 @@ NEWSYM KeyRewind, dd 0
NEWSYM ChatNick, times 16 db 0 NEWSYM ChatNick, times 16 db 0
NEWSYM KeySlowDown, dd 0 NEWSYM KeySlowDown, dd 0
NEWSYM MMXSupport, db 1 NEWSYM UseCubicSpline, db 1
NEWSYM LargeSoundBuf, db 0 NEWSYM LargeSoundBuf, db 0
NEWSYM HighPriority, db 0 NEWSYM HighPriority, db 0
@@ -592,6 +592,7 @@ NEWSYM TripleBufferWin, db 0
NEWSYM ExclusiveSound, db 0 NEWSYM ExclusiveSound, db 0
NEWSYM DisableScreenSaver, db 0 NEWSYM DisableScreenSaver, db 0
NEWSYM MMXSupport, db 1
NEWSYM TrapMouseCursor, db 1 NEWSYM TrapMouseCursor, db 1
NEWSYM KeyQuickClock, dd 0 NEWSYM KeyQuickClock, dd 0
NEWSYM KeyQuickSaveSPC, dd 0 NEWSYM KeyQuickSaveSPC, dd 0
@@ -624,7 +625,7 @@ ModemOKStat db 0 ; OK is detected on modem status
GUIwinposxo dd 0,5 ,60 ,30 ,55 ,50 ,35 ,5 ,30 ,10 ,10 ,80 ,65 ,20 ,70 ,50 ,3 ,50 GUIwinposxo dd 0,5 ,60 ,30 ,55 ,50 ,35 ,5 ,30 ,10 ,10 ,80 ,65 ,20 ,70 ,50 ,3 ,50
GUIwinposyo dd 0,20 ,70 ,30 ,20 ,20 ,20 ,20 ,30 ,20 ,20 ,50 ,60 ,30 ,65 ,50 ,22 ,60 GUIwinposyo dd 0,20 ,70 ,30 ,20 ,20 ,20 ,20 ,30 ,20 ,20 ,50 ,60 ,30 ,65 ,50 ,22 ,60
GUIwinsizex dd 0,244 ,126 ,189 ,167 ,170 ,188 ,244 ,8*16,235 ,240 ,7*16,9*16,8*16,9*16,140 ,250 ,160 GUIwinsizex dd 0,244 ,126 ,189 ,167 ,170 ,188 ,244 ,8*16,235 ,240 ,7*16,9*16,8*16,9*16,140 ,250 ,160
GUIwinsizey dd 0,190 ,3*16,166 ,190 ,192 ,184 ,191 ,40 ,189 ,192 ,108 ,42 ,40 ,42 ,70 ,190 ,60 GUIwinsizey dd 0,190 ,3*16,166 ,190 ,192 ,184 ,191 ,40 ,189 ,150 ,108 ,42 ,40 ,42 ,70 ,190 ,60
GUIwinptr db 0 GUIwinptr db 0
GUItextcolor db 0,0,0,0,0 GUItextcolor db 0,0,0,0,0

View File

@@ -1250,6 +1250,8 @@ GUISoundKeys:
.nocubicinterp .nocubicinterp
cmp dh,'8' cmp dh,'8'
jne .no8ptinterp jne .no8ptinterp
cmp byte[MMXSupport],0
je .no8ptinterp
GUIkeystoggleoptn byte[SoundInterpType],3 GUIkeystoggleoptn byte[SoundInterpType],3
.no8ptinterp .no8ptinterp
cmp dh,'I' cmp dh,'I'

View File

@@ -1358,6 +1358,28 @@ GUIWinClicked:
%%noclick %%noclick
%endmacro %endmacro
%macro GUIClickCButton5MMX 4
cmp eax,%1+1
jl %%noclick
cmp edx,%2+3
jl %%noclick
cmp eax,%1+6
jg %%noclick
cmp edx,%2+8
jg %%noclick
cmp byte[MMXSupport],0
je %%clear
cmp %3,%4
jne %%set
xor %3,%4
jmp %%clear
%%set
mov %3,%4
%%clear
ret
%%noclick
%endmacro
%macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize %macro GUISlidebarPostImpl 13 ; x1,y1,x2,y2,upjump,downjump,holdpos,scsize,view,cur,listsize
cmp dword[%11],0 cmp dword[%11],0
je near %%nolower je near %%nolower
@@ -1888,10 +1910,10 @@ DisplayGUIConfirmClick:
GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0 GUIPButtonHoleLoad 9,163,byte[GUIloadfntype],0
GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1 GUIPButtonHoleLoad 9,171,byte[GUIloadfntype],1
GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2 GUIPButtonHoleLoad 9,179,byte[GUIloadfntype],2
GUIClickCButton6 144,177,byte[ForceROMTiming],1 GUIClickCButton5 144,177,byte[ForceROMTiming],1
GUIClickCButton6 144,187,byte[ForceROMTiming],2 GUIClickCButton5 144,187,byte[ForceROMTiming],2
GUIClickCButton6 184,177,byte[ForceHiLoROM],1 GUIClickCButton5 184,177,byte[ForceHiLoROM],1
GUIClickCButton6 184,187,byte[ForceHiLoROM],2 GUIClickCButton5 184,187,byte[ForceHiLoROM],2
ret ret
DisplayGUIChoseSaveClick: DisplayGUIChoseSaveClick:
@@ -2333,12 +2355,12 @@ DisplayGUISoundClick:
;.win32sound ;.win32sound
GUIClickCButton 11,131,byte[SoundBufEn] GUIClickCButton 11,131,byte[SoundBufEn]
GUIClickCButton 11,141,byte[SPCDisable] GUIClickCButton 11,141,byte[SPCDisable]
GUIClickCButton6 11,161,byte[SoundInterpType],1 GUIClickCButton5 11,161,byte[SoundInterpType],1
GUIClickCButton6 11,171,byte[SoundInterpType],2 GUIClickCButton5 11,171,byte[SoundInterpType],2
GUIClickCButton6 11,181,byte[SoundInterpType],3 GUIClickCButton5MMX 11,181,byte[SoundInterpType],3
GUIClickCButton6 111,161,byte[LowPassFilterType],1 GUIClickCButton5 111,161,byte[LowPassFilterType],1
GUIClickCButton6 111,171,byte[LowPassFilterType],2 GUIClickCButton5 111,171,byte[LowPassFilterType],2
GUIClickCButton6 111,181,byte[LowPassFilterType],3 GUIClickCButton5 111,181,byte[LowPassFilterType],3
cmp eax,15 cmp eax,15
jl near .nosrate jl near .nosrate
cmp edx,61 cmp edx,61

View File

@@ -4719,6 +4719,9 @@ GUIGameOptnsTextY db 'ST+',0
GUIGameOptnsTextZ db 'ST-',0 GUIGameOptnsTextZ db 'ST-',0
DisplayGUIOptns: DisplayGUIOptns:
%ifdef __WIN32__
mov dword[GUIwinsizey+10*4],192
%endif
GUIDrawWindowBox 10,GUIGUIDisp GUIDrawWindowBox 10,GUIGUIDisp
push eax push eax

View File

@@ -2615,7 +2615,7 @@ int GetMouseX(void)
SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224)); SetCursorPos(X + WindowWidth + 32, Y + (MouseY * WindowHeight / 224));
} }
} }
else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 || GUIOn2 == 1) else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 && GUIOn2 == 1)
{ {
MouseInput->Unacquire(); MouseInput->Unacquire();
SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224)); SetCursorPos(X + WindowWidth + 1, Y + (MouseY * WindowHeight / 224));
@@ -2634,7 +2634,7 @@ int GetMouseX(void)
SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224)); SetCursorPos(X - 32, Y + (MouseY * WindowHeight / 224));
} }
} }
else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 || GUIOn2 == 1) else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 && GUIOn2 == 1)
{ {
MouseInput->Unacquire(); MouseInput->Unacquire();
SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224)); SetCursorPos(X - 1, Y + (MouseY * WindowHeight / 224));
@@ -2659,7 +2659,7 @@ int GetMouseY(void)
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32); SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 32);
} }
} }
else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 || GUIOn2 == 1) else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 && GUIOn2 == 1)
{ {
MouseInput->Unacquire(); MouseInput->Unacquire();
SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1); SetCursorPos(X+(MouseX * WindowWidth / 256), Y + WindowHeight + 1);
@@ -2678,7 +2678,7 @@ int GetMouseY(void)
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32); SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 32);
} }
} }
else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 || GUIOn2 == 1) else if (FullScreen == 0 && snesmouse == 0 && MouseButtonPressed == 0 && GUIOn2 == 1)
{ {
MouseInput->Unacquire(); MouseInput->Unacquire();
SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1); SetCursorPos(X + (MouseX * WindowWidth / 256), Y - 1);