aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.cpp
diff options
context:
space:
mode:
authorDjihads <76681596+Djihads80@users.noreply.github.com>2026-10-30 09:02:43 +0100
committerGitHub <noreply@github.com>2026-10-30 09:02:43 +0100
commitc4b0289c33db9049ddd9a8b43e0089ea70e851c1 (patch)
treea1770524ff7c5177a5664989d173acbb3d2d1297 /src/yuzu/bootmanager.cpp
parent467ec722581e7ad573491c5662bcd9544eadd2ed (diff)
parentf4b0c80401605ad66b255f91d8fb9cdcd31932d8 (diff)
Merge branch 'nx2' into fix/vfs-open-file-limit
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r--src/yuzu/bootmanager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 57cc395ae8..7b68e0761b 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -764,12 +764,15 @@ bool GRenderWindow::InitRenderTarget() {
// Update the Window System information with the new render target
window_info = QtCommon::GetWindowSystemInfo(child_widget->windowHandle());
- child_widget->resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
+ const auto target_width = Settings::IsDockedMode() ? Layout::ScreenDocked::Width : Layout::ScreenUndocked::Width;
+ const auto target_height = Settings::IsDockedMode() ? Layout::ScreenDocked::Height : Layout::ScreenUndocked::Height;
+
+ child_widget->resize(target_width, target_height);
layout()->addWidget(child_widget);
// Reset minimum required size to avoid resizing issues on the main window after restarting.
setMinimumSize(1, 1);
- resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
+ resize(target_width, target_height);
OnMinimalClientAreaChangeRequest(GetActiveConfig().min_client_area_size);
OnFramebufferSizeChanged();