diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-06 23:20:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 23:20:49 -0500 |
commit | 1f3e8d633a6886aabc6631f2474dea644557458c (patch) | |
tree | 383436051ba66d167b4a335d9cc4b6d0b10a69df /src/yuzu/util/overlay_dialog.cpp | |
parent | ecbf74b87a2c4216002ae37026d2301bc39c93a9 (diff) | |
parent | ad6cec71ecd61aa2533d9efa89b68837516f8464 (diff) |
Merge pull request #4949 from Morph1984/hidpi-temp-fix
main: Enable High DPI fixes for Qt >= 5.14
Diffstat (limited to 'src/yuzu/util/overlay_dialog.cpp')
-rw-r--r-- | src/yuzu/util/overlay_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp index 796f5bf41..ee35a3e15 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 = |