Moved grayscale toggle code from C to ASM; enabled grayscale toggle in dos port
This commit is contained in:
@@ -132,6 +132,7 @@ EXTSYM UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
|
||||
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
|
||||
EXTSYM ZsnesPage
|
||||
EXTSYM GetLocalTime
|
||||
EXTSYM V8Mode,GrayscaleMode
|
||||
|
||||
NEWSYM WinIntRFAsmStart
|
||||
|
||||
@@ -808,6 +809,12 @@ NEWSYM InitPreGame ; Executes before starting/continuing a game
|
||||
call initwinvideo
|
||||
popad
|
||||
|
||||
mov al,[GrayscaleMode]
|
||||
cmp al,[V8Mode]
|
||||
je .nochangemode
|
||||
xor byte[V8Mode],1
|
||||
.nochangemode
|
||||
|
||||
mov byte[RaisePitch],1
|
||||
pushad
|
||||
call AdjustFrequency
|
||||
|
||||
Reference in New Issue
Block a user