summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2025-08-10 20:26:32 +0100
committerGitHub <noreply@github.com>2025-08-10 20:26:32 +0100
commit72ef27c157e13075b656334657e46a3952ae2dff (patch)
treeeadb7de37913ba915aa81aad778ab531f638577e /Source
parentba656e641e8cefa3b649f3b810afd7beca2d2245 (diff)
parentf04c2799dd1853fb80806cb3df04cdeb51678cdc (diff)
Merge pull request #13861 from Tilka/unused_lambda_captures
DolphinQt: fix two -Wunused-lambda-capture warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Settings/AdvancedPane.cpp6
-rw-r--r--Source/Core/VideoBackends/Software/SWEfbInterface.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp
index 3a8251ae83..d53884f37e 100644
--- a/Source/Core/DolphinQt/Settings/AdvancedPane.cpp
+++ b/Source/Core/DolphinQt/Settings/AdvancedPane.cpp
@@ -132,8 +132,7 @@ void AdvancedPane::CreateLayout()
};
cpu_text();
- connect(m_cpu_clock_override_slider, &QSlider::valueChanged, this,
- [this, cpu_text]() { cpu_text(); });
+ connect(m_cpu_clock_override_slider, &QSlider::valueChanged, this, cpu_text);
m_cpu_clock_override_checkbox->SetDescription(
tr("Adjusts the emulated CPU's clock rate.<br><br>"
@@ -177,8 +176,7 @@ void AdvancedPane::CreateLayout()
};
vi_text();
- connect(m_vi_rate_override_slider, &QSlider::valueChanged, this,
- [this, vi_text]() { vi_text(); });
+ connect(m_vi_rate_override_slider, &QSlider::valueChanged, this, vi_text);
m_vi_rate_override_checkbox->SetDescription(
tr("Adjusts the VBI frequency. Also adjusts the emulated CPU's "
diff --git a/Source/Core/VideoBackends/Software/SWEfbInterface.cpp b/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
index e2e4003cb4..f03bff0417 100644
--- a/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
+++ b/Source/Core/VideoBackends/Software/SWEfbInterface.cpp
@@ -397,7 +397,7 @@ static void SubtractBlend(u8* srcClr, u8* dstClr)
static void Dither(u16 x, u16 y, u8* color)
{
- // No blending for RGB8 mode
+ // No dithering for RGB8 mode
if (!bpmem.blendmode.dither || bpmem.zcontrol.pixel_format != PixelFormat::RGBA6_Z24)
return;