From eb7154e426c26c9799a998db7a9e401cbea7f0a4 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Wed, 10 May 2017 02:30:18 +0200 Subject: woops --- src/NDS.cpp | 2 -- src/wx/main.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/NDS.cpp b/src/NDS.cpp index ddd6c03..4c57bb6 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -382,8 +382,6 @@ void RunSystem(s32 cycles) u32 RunFrame() { - s32 framecycles = 560190; - if (!Running) return 263; // dorp diff --git a/src/wx/main.cpp b/src/wx/main.cpp index e07d3c9..214996a 100644 --- a/src/wx/main.cpp +++ b/src/wx/main.cpp @@ -412,7 +412,7 @@ wxThread::ExitCode EmuThread::Entry() // framerate limiter based off SDL2_gfx float framerate; if (nlines == 263) framerate = 1000.0f / 60.0f; - else framerate = 1000.0f / ((60.0f * nlines) / 263.0f); + else framerate = ((1000.0f * nlines) / 263.0f) / 60.0f; fpslimitcount++; u32 curtick = SDL_GetTicks(); -- cgit v1.2.3