GUI: Only wait up to 30 frames when unpausing
Jeffrey Pfau jeffrey@endrift.com
Fri, 11 Sep 2015 21:22:57 -0700
1 files changed,
7 insertions(+),
1 deletions(-)
jump to
M
src/gba/gui/gui-runner.c
→
src/gba/gui/gui-runner.c
@@ -267,7 +267,13 @@ case RUNNER_CONTINUE:
break; } } - while (keys) { + int frames = 0; + GUIPollInput(&runner->params, 0, &keys); + while (keys && frames < 30) { + ++frames; + runner->params.drawStart(); + runner->drawFrame(runner, true); + runner->params.drawEnd(); GUIPollInput(&runner->params, 0, &keys); } if (runner->unpaused) {