From 4fce3e4588e74eeb183edbe8f09c450477ac0ea1 Mon Sep 17 00:00:00 2001 From: The Dax Date: Sun, 4 May 2014 15:43:16 -0400 Subject: [PATCH] Alt speed slider: Remove the rounding, since native does it automatically. Don't use an integer divide. --- UI/GameSettingsScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index b57ecd52c5..28c1cf165d 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -59,7 +59,7 @@ void GameSettingsScreen::CreateViews() { cap60FPS_ = g_Config.iForceMaxEmulatedFPS == 60; showDebugStats_ = g_Config.bShowDebugStats; - const float speedPercent = std::floor(((g_Config.iFpsLimit) / 60.0f) * 100); + const float speedPercent = (g_Config.iFpsLimit / 60.0f) * 100.0f; iAlternateSpeedPercent_ = (int)speedPercent; // Information in the top left. @@ -436,7 +436,7 @@ void GameSettingsScreen::update(InputState &input) { UIScreen::update(input); g_Config.iForceMaxEmulatedFPS = cap60FPS_ ? 60 : 0; - const float fpsLimit = std::floor(60.0f * (iAlternateSpeedPercent_ / 100)); + const float fpsLimit = (iAlternateSpeedPercent_ / 100.0f) * 60.0f; g_Config.iFpsLimit = (int)fpsLimit; if (g_Config.bShowDebugStats != showDebugStats_) {