summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2019-03-02 20:46:04 +0100
committerGitHub <noreply@github.com>2019-03-02 20:46:04 +0100
commit169d19f7b94323341487e029f9765d8b47b062b4 (patch)
tree9616083ca561d198edec9e03fefaef6e5681b74c /src
parentMerge pull request #2183 from ReinUsesLisp/vk-buffer-cache-clang (diff)
parentcitra_qt/main: make SPEED_LIMIT_STEP static constexpr (diff)
downloadyuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar.gz
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar.bz2
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar.lz
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar.xz
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.tar.zst
yuzu-169d19f7b94323341487e029f9765d8b47b062b4.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 1d460c189..5ab7896d4 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -561,7 +561,10 @@ void GMainWindow::InitializeHotkeys() {
Settings::values.use_frame_limit = !Settings::values.use_frame_limit;
UpdateStatusBar();
});
- constexpr u16 SPEED_LIMIT_STEP = 5;
+ // TODO: Remove this comment/static whenever the next major release of
+ // MSVC occurs and we make it a requirement (see:
+ // https://developercommunity.visualstudio.com/content/problem/93922/constexprs-are-trying-to-be-captured-in-lambda-fun.html)
+ static constexpr u16 SPEED_LIMIT_STEP = 5;
connect(hotkey_registry.GetHotkey("Main Window", "Increase Speed Limit", this),
&QShortcut::activated, this, [&] {
if (Settings::values.frame_limit < 9999 - SPEED_LIMIT_STEP) {