Some feedback on when pressing and releasing fast forward.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3603
This commit is contained in:
parent
bc76927f2f
commit
fe401ac460
1 changed files with 3 additions and 1 deletions
|
@ -248,6 +248,7 @@ void DOSBOX_RunMachine(void){
|
|||
static void DOSBOX_UnlockSpeed( bool pressed ) {
|
||||
static bool autoadjust = false;
|
||||
if (pressed) {
|
||||
LOG_MSG("Fast Forward ON");
|
||||
ticksLocked = true;
|
||||
if (CPU_CycleAutoAdjust) {
|
||||
autoadjust = true;
|
||||
|
@ -255,7 +256,8 @@ static void DOSBOX_UnlockSpeed( bool pressed ) {
|
|||
CPU_CycleMax /= 3;
|
||||
if (CPU_CycleMax<1000) CPU_CycleMax=1000;
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
LOG_MSG("Fast Forward OFF");
|
||||
ticksLocked = false;
|
||||
if (autoadjust) {
|
||||
autoadjust = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue