diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-10 10:54:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-10 10:54:10 -0500 |
| commit | caaad4fd5fb377ab7f6a09a0153aef45969e8489 (patch) | |
| tree | eeb33de411a91b0d689a7df0aab116e08f672576 | |
| parent | f53229074add154a5cfff83f22386dfb3c5839da (diff) | |
| parent | 030b6f5a5b15f50e1dcfbcaaa47ce6940b890184 (diff) | |
Merge pull request #9761 from Morph1984/oops
main: Re-add QtWebEngine zoom factor
| -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 f28268e9b7..c278d8dab4 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(); |
