Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

main: Re-add QtWebEngine zoom factor

Morph030b6f5a5b15
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();