diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-02-09 22:56:33 -0500 |
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-02-09 22:57:37 -0500 |
| commit | 030b6f5a5b15f50e1dcfbcaaa47ce6940b890184 (patch) | |
| tree | 114c8ff006961a65b66741280a7a335a9d5239d3 /src | |
| parent | 5e8beb000beeb7953138c3acb13503ea7d688f8f (diff) | |
main: Re-add QtWebEngine zoom factor
For some reason, I had removed this in https://github.com/yuzu-emu/yuzu/pull/4949/commits/2a75968ff46292f5eec4e17476338debcbb169b0
This should fix any improperly scaled web applets.
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 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(); |
