summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-06-14 20:09:45 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-06-14 20:09:51 +0200
commit0eeee431dc3fc38114282174f4858c7e81667eb2 (patch)
tree8f8406add1556979964c8db2640ea7cd37935d16 /src
parentwait_tree: Eliminate variable shadowing (diff)
downloadyuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar.gz
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar.bz2
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar.lz
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar.xz
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.tar.zst
yuzu-0eeee431dc3fc38114282174f4858c7e81667eb2.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 7dc9b6743..b460020b1 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -934,8 +934,7 @@ void GMainWindow::InitializeWidgets() {
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::Vulkan);
} else {
Settings::values.renderer_backend.SetValue(Settings::RendererBackend::OpenGL);
- const auto filter = Settings::values.scaling_filter.GetValue();
- if (filter == Settings::ScalingFilter::Fsr) {
+ if (Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::Fsr) {
Settings::values.scaling_filter.SetValue(Settings::ScalingFilter::NearestNeighbor);
UpdateFilterText();
}
@@ -1508,7 +1507,7 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t
// Register an ExecuteProgram callback such that Core can execute a sub-program
system->RegisterExecuteProgramCallback(
- [this](std::size_t program_index) { render_window->ExecuteProgram(program_index); });
+ [this](std::size_t program_index_) { render_window->ExecuteProgram(program_index_); });
// Register an Exit callback such that Core can exit the currently running application.
system->RegisterExitCallback([this]() { render_window->Exit(); });