diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-07 05:20:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 05:20:49 +0100 |
commit | 1f3e8d633a6886aabc6631f2474dea644557458c (patch) | |
tree | 383436051ba66d167b4a335d9cc4b6d0b10a69df /src/yuzu/util/overlay_dialog.cpp | |
parent | Merge pull request #9644 from SaiKai/volume_quicksetting (diff) | |
parent | main: Convert to device independent coordinates for scaling (diff) | |
download | yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar.gz yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar.bz2 yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar.lz yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar.xz yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.tar.zst yuzu-1f3e8d633a6886aabc6631f2474dea644557458c.zip |
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 = |