summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-06-17 04:07:13 +0200
committerGitHub <noreply@github.com>2023-06-17 04:07:13 +0200
commit1aef85a985a81d9e9419a14d92cdf4e497e2a0b4 (patch)
treedd4c56f2dbbc1f0b84a58ef355fe29cdedca9c1e /Source/Core/VideoCommon/Present.cpp
parent089d43399616dd7574515a899bdb92d8d1f0815b (diff)
parentfc53dca7bdc30473b6e26228b97c5e0de378b3d3 (diff)
Merge pull request #11918 from TellowKrinkle/DPIScale
Improved DPI change handling
Diffstat (limited to 'Source/Core/VideoCommon/Present.cpp')
-rw-r--r--Source/Core/VideoCommon/Present.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Present.cpp b/Source/Core/VideoCommon/Present.cpp
index c969bdb91f..6cf27cd9bb 100644
--- a/Source/Core/VideoCommon/Present.cpp
+++ b/Source/Core/VideoCommon/Present.cpp
@@ -176,6 +176,8 @@ void Presenter::SetBackbuffer(SurfaceInfo info)
m_backbuffer_height = info.height;
m_backbuffer_scale = info.scale;
m_backbuffer_format = info.format;
+ if (m_onscreen_ui)
+ m_onscreen_ui->SetScale(info.scale);
UpdateDrawRectangle();
}