1
0
Fork 0

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:
Peter Veenstra 2010-05-10 17:16:03 +00:00
parent bc76927f2f
commit fe401ac460

View file

@ -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;