diff options
| author | 2023-02-10 10:54:10 -0500 | |
|---|---|---|
| committer | 2023-02-10 10:54:10 -0500 | |
| commit | b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541 (patch) | |
| tree | eeb33de411a91b0d689a7df0aab116e08f672576 /src | |
| parent | Merge pull request #9765 from liamwhite/ffs-apple (diff) | |
| parent | main: Re-add QtWebEngine zoom factor (diff) | |
| download | yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.gz yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.tar.xz yuzu-b3a8c0dc495a7cce2de5c7dd8b6db83cf968c541.zip | |
Merge pull request #9761 from Morph1984/oops
main: Re-add QtWebEngine zoom factor
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
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(); |