summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Present.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2023-06-10 02:11:14 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2023-06-11 20:05:27 -0500
commitd3110b9521d3b67daf41b45b6a520907ff11773a (patch)
tree9c046cd0fb999dd9a40259df5e4772728acc013e /Source/Core/VideoCommon/Present.cpp
parent7752e247f7676273cc5a2bff3e03f58c1f265717 (diff)
VideoCommon: Update imgui scale when dpi changes
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 3ac4d516df..7de3fd9d84 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();
}