all repos — mgba @ 08c7c805a8069b7a04722314d6ebc2f104f0b9ae

mGBA Game Boy Advance Emulator

GUI: Minor fixes from Extrems
Jeffrey Pfau jeffrey@endrift.com
Tue, 27 Oct 2015 23:28:32 -0700
commit

08c7c805a8069b7a04722314d6ebc2f104f0b9ae

parent

a9d84df1f47b0c37fcf2549509b677394dc15130

1 files changed, 2 insertions(+), 4 deletions(-)

jump to
M src/gba/gui/gui-runner.csrc/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(); } }