mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 20:48:08 +00:00
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.
This commit is contained in:
@@ -805,6 +805,8 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
|
|||||||
layout.screen.GetHeight() / scale_ratio);
|
layout.screen.GetHeight() / scale_ratio);
|
||||||
web_browser_view.move(layout.screen.left / scale_ratio,
|
web_browser_view.move(layout.screen.left / scale_ratio,
|
||||||
(layout.screen.top / scale_ratio) + menuBar()->height());
|
(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.setFocus();
|
||||||
web_browser_view.show();
|
web_browser_view.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user