aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-05-10 02:30:18 +0200
committerStapleButter <thetotalworm@gmail.com>2017-05-10 02:30:18 +0200
commiteb7154e426c26c9799a998db7a9e401cbea7f0a4 (patch)
tree66a9eb26818856425ba7b66145f79f51ce5d70a2 /src
parentf54f54fb7e640a339433e72fb7406ba8cd2d91bc (diff)
woops
Diffstat (limited to 'src')
-rw-r--r--src/NDS.cpp2
-rw-r--r--src/wx/main.cpp2
2 files changed, 1 insertions, 3 deletions
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();