aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/util/overlay_dialog.cpp
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2023-02-06 13:02:34 +0000
committeryuzubot <yuzu@yuzu-emu.org>2023-02-06 13:02:34 +0000
commit0731445ffc700963e1b025377f6f9109d338d4d0 (patch)
treee0acb45db44d6dd4b601d3850209d0fe8a1498b5 /src/yuzu/util/overlay_dialog.cpp
parentd663f02c0e27cd91eb20225d2e6db1d602ba81c7 (diff)
"Merge Tagged PR 4949"mainline-0-1331
Diffstat (limited to 'src/yuzu/util/overlay_dialog.cpp')
-rw-r--r--src/yuzu/util/overlay_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp
index 796f5bf41e..ee35a3e151 100644
--- a/src/yuzu/util/overlay_dialog.cpp
+++ b/src/yuzu/util/overlay_dialog.cpp
@@ -163,7 +163,7 @@ void OverlayDialog::MoveAndResizeWindow() {
const auto height = static_cast<float>(parentWidget()->height());
// High DPI
- const float dpi_scale = parentWidget()->windowHandle()->screen()->logicalDotsPerInch() / 96.0f;
+ const float dpi_scale = screen()->logicalDotsPerInch() / 96.0f;
const auto title_text_font_size = BASE_TITLE_FONT_SIZE * (height / BASE_HEIGHT) / dpi_scale;
const auto body_text_font_size =