summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2023-02-09 22:56:33 -0500
committerGravatar Morph2023-02-09 22:57:37 -0500
commit3fbb93e5c92849fe3d747211222a15cab2b11610 (patch)
tree114c8ff006961a65b66741280a7a335a9d5239d3 /src
parentMerge pull request #9736 from Kelebek1/dynamic_vertex_attribs (diff)
downloadyuzu-3fbb93e5c92849fe3d747211222a15cab2b11610.tar.gz
yuzu-3fbb93e5c92849fe3d747211222a15cab2b11610.tar.xz
yuzu-3fbb93e5c92849fe3d747211222a15cab2b11610.zip
main: Re-add QtWebEngine zoom factor
For some reason, I had removed this in https://github.com/yuzu-emu/yuzu/pull/4949/commits/ad6cec71ecd61aa2533d9efa89b68837516f8464 This should fix any improperly scaled web applets.
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,
805 layout.screen.GetHeight() / scale_ratio); 805 layout.screen.GetHeight() / scale_ratio);
806 web_browser_view.move(layout.screen.left / scale_ratio, 806 web_browser_view.move(layout.screen.left / scale_ratio,
807 (layout.screen.top / scale_ratio) + menuBar()->height()); 807 (layout.screen.top / scale_ratio) + menuBar()->height());
808 web_browser_view.setZoomFactor(static_cast<qreal>(layout.screen.GetWidth() / scale_ratio) /
809 static_cast<qreal>(Layout::ScreenUndocked::Width));
808 810
809 web_browser_view.setFocus(); 811 web_browser_view.setFocus();
810 web_browser_view.show(); 812 web_browser_view.show();