summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-10 16:54:10 +0100
committerGitHub <noreply@github.com>2023-02-10 16:54:10 +0100
commitb3a8c0dc495a7cce2de5c7dd8b6db83cf968c541 (patch)
treeeeb33de411a91b0d689a7df0aab116e08f672576 /src
parentMerge pull request #9765 from liamwhite/ffs-apple (diff)
parentmain: Re-add QtWebEngine zoom factor (diff)
downloadyuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.gz
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.bz2
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.lz
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.xz
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.zst
yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index f28268e9b..c278d8dab 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -805,6 +805,8 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
layout.screen.GetHeight() / scale_ratio);
web_browser_view.move(layout.screen.left / scale_ratio,
(layout.screen.top / scale_ratio) + menuBar()->height());
+ web_browser_view.setZoomFactor(static_cast<qreal>(layout.screen.GetWidth() / scale_ratio) /
+ static_cast<qreal>(Layout::ScreenUndocked::Width));
web_browser_view.setFocus();
web_browser_view.show();