Added key to toggle display of FPS
This commit is contained in:
@@ -596,6 +596,7 @@ NEWSYM KeyQuickMinimize, dd 0
|
||||
NEWSYM AutoIncSaveSlot, db 0
|
||||
NEWSYM TCPIPAddress, db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
NEWSYM SoundInterpType, db 2
|
||||
NEWSYM KeyDisplayFPS, dd 0
|
||||
|
||||
GUIsave equ $-GUIRAdd
|
||||
|
||||
|
||||
@@ -2694,6 +2694,7 @@ DisplayGameOptnsClick:
|
||||
DGOptnsProcBox 178,68,[KeyVolDown]
|
||||
DGOptnsProcBox 178,76,[KeyFRateUp]
|
||||
DGOptnsProcBox 178,84,[KeyFRateDown]
|
||||
DGOptnsProcBox 178,92,[KeyDisplayFPS]
|
||||
; cmp byte[OSPort],3
|
||||
; jne near .notwin32
|
||||
%ifndef __MSDOS__
|
||||
|
||||
@@ -4451,6 +4451,7 @@ DisplayGameOptns:
|
||||
GUIOuttextwin2 9,109,70,GUIGameOptnsTextN
|
||||
GUIOuttextwin2 9,109,78,GUIGameOptnsTextO
|
||||
GUIOuttextwin2 9,109,86,GUIGameOptnsTextP
|
||||
GUIOuttextwin2 9,109,94,GUIGameOptnsTextX
|
||||
mov al,byte[GUIGameOptnsColA]
|
||||
mov byte[GUItextcolor],al
|
||||
GUIOuttextwin2 9,6,104,GUIGameOptnsText1
|
||||
@@ -4546,7 +4547,7 @@ DisplayGameOptns:
|
||||
GUIOuttextwin2 9,8,69,GUIGameOptnsTextE
|
||||
GUIOuttextwin2 9,8,77,GUIGameOptnsTextF
|
||||
GUIOuttextwin2 9,8,85,GUIGameOptnsTextG
|
||||
GUIOuttextwin2 9,8,94,GUIGameOptnsTextT
|
||||
GUIOuttextwin2 9,8,93,GUIGameOptnsTextT
|
||||
; cmp byte[OSPort],3
|
||||
; jne near .notwin32b
|
||||
%ifndef __MSDOS__
|
||||
@@ -4558,6 +4559,7 @@ DisplayGameOptns:
|
||||
GUIOuttextwin2 9,108,69,GUIGameOptnsTextN
|
||||
GUIOuttextwin2 9,108,77,GUIGameOptnsTextO
|
||||
GUIOuttextwin2 9,108,85,GUIGameOptnsTextP
|
||||
GUIOuttextwin2 9,108,93,GUIGameOptnsTextX
|
||||
mov al,byte[GUIGameOptnsColA]
|
||||
mov byte[GUItextcolor],al
|
||||
GUIOuttextwin2 9,5,103,GUIGameOptnsText1
|
||||
@@ -4645,6 +4647,7 @@ DisplayGameOptns:
|
||||
DGOptnsDrawBox 178,68,[KeyVolDown]
|
||||
DGOptnsDrawBox 178,76,[KeyFRateUp]
|
||||
DGOptnsDrawBox 178,84,[KeyFRateDown]
|
||||
DGOptnsDrawBox 178,92,[KeyDisplayFPS]
|
||||
DGOptnsDrawBox 27,112,[KeyDisableSC0]
|
||||
DGOptnsDrawBox 27+45,112,[KeyDisableSC1]
|
||||
DGOptnsDrawBox 27+45*2,112,[KeyDisableSC2]
|
||||
@@ -4711,6 +4714,7 @@ GUIGameOptnsTextS db 'REWIND KEY',0
|
||||
GUIGameOptnsTextT db 'SLOWDWN KEY',0
|
||||
GUIGameOptnsTextU db 'CLOCK',0
|
||||
GUIGameOptnsTextV db 'MINIMIZE',0
|
||||
GUIGameOptnsTextX db 'DISPLAY FPS',0
|
||||
|
||||
DisplayGUIOptns:
|
||||
GUIDrawWindowBox 10,GUIGUIDisp
|
||||
|
||||
@@ -44,7 +44,7 @@ EXTSYM CNetType
|
||||
EXTSYM KeySlowDown
|
||||
EXTSYM chaton
|
||||
EXTSYM genfulladdtab
|
||||
EXTSYM KeyFRateDown,KeyFRateUp,KeyVolUp,KeyVolDown,FPSOn
|
||||
EXTSYM KeyFRateDown,KeyFRateUp,KeyVolUp,KeyVolDown,KeyDisplayFPS,FPSOn
|
||||
EXTSYM bg1ptr,bg2ptr,bg3ptr,bg4ptr,cachebg1,resolutn
|
||||
EXTSYM curypos,oamram,objhipr,objptr,objptrn,objsize1,objsize2
|
||||
EXTSYM spritetablea,sprleftpr,sprlefttot,vcache4b
|
||||
@@ -686,6 +686,14 @@ NEWSYM cachevideo
|
||||
mov eax,[MsgCount]
|
||||
mov [MessageOn],eax
|
||||
.nofrdown
|
||||
mov eax,[KeyDisplayFPS]
|
||||
test byte[pressed+eax],1
|
||||
je .nodisplayfps
|
||||
mov byte[pressed+eax],2
|
||||
cmp byte[frameskip],0
|
||||
jne .nodisplayfps
|
||||
xor byte[FPSOn],1
|
||||
.nodisplayfps
|
||||
; do state selects
|
||||
stateselcomp KeyStateSlc0,'0','T'
|
||||
stateselcomp KeyStateSlc1,'1','1'
|
||||
|
||||
Reference in New Issue
Block a user