aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/main.cpp
diff options
context:
space:
mode:
authorJon Pacheco <jon.pacheco2@gmail.com>2019-05-14 17:29:49 +0100
committerJon Pacheco <jon.pacheco2@gmail.com>2019-05-14 17:29:49 +0100
commitf769d6e23f7635910e3f6659c6b55d8c6a8e96ff (patch)
tree937a8aeebc7afef328c0bcebaf3ff23fad841e74 /src/libui_sdl/main.cpp
parent7d2ba09fd7d43397e1e2915de0e9a7e8e0abb6c2 (diff)
Ensure that 'Limit framerate' option is synced with the toggle hotkeys
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r--src/libui_sdl/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 83cfb6e..b0e89a6 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -1685,6 +1685,7 @@ void OnSetLimitFPS(uiMenuItem* item, uiWindow* window, void* blarg)
int chk = uiMenuItemChecked(item);
if (chk != 0) Config::LimitFPS = true;
else Config::LimitFPS = false;
+ HotkeyFPSToggle = !Config::LimitFPS; // ensure that the hotkey toggle indicator is synced with this menu item
}
void ApplyNewSettings(int type)