GUI: Minor fixes from Extrems
Jeffrey Pfau jeffrey@endrift.com
Tue, 27 Oct 2015 23:28:32 -0700
1 files changed,
2 insertions(+),
4 deletions(-)
jump to
M
src/gba/gui/gui-runner.c
→
src/gba/gui/gui-runner.c
@@ -212,12 +212,10 @@ }
if (runner->params.guiFinish) { runner->params.guiFinish(); } - GBAContextStart(&runner->context); + bool running = GBAContextStart(&runner->context); if (runner->gameLoaded) { runner->gameLoaded(runner); } - - bool running = true; while (running) { CircleBufferClear(&runner->fpsBuffer); runner->totalDelta = 0;@@ -261,7 +259,7 @@ if (runner->params.guiPrepare) {
runner->params.guiPrepare(); } GUIFontPrintf(runner->params.font, 0, GUIFontHeight(runner->params.font), GUI_TEXT_LEFT, 0x7FFFFFFF, "%.2f fps", runner->fps); - if (runner->params.guiPrepare) { + if (runner->params.guiFinish) { runner->params.guiFinish(); } }