diff options
| author | theofficialhackclean <85363951+theofficialhackclean@users.noreply.github.com> | 2026-10-29 15:16:27 -0400 |
|---|---|---|
| committer | theofficialhackclean <85363951+theofficialhackclean@users.noreply.github.com> | 2026-10-29 15:16:27 -0400 |
| commit | 50c9fd3471d5f0170a7495ee10fd8b0b2f0298e1 (patch) | |
| tree | 19c0e51f5d82fe77e04ee46b0700936b58efb328 /src/yuzu/bootmanager.cpp | |
| parent | a8657997e1eb594ffde9e28d44672ef5b697ad59 (diff) | |
fixed window size for mkw
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
| -rw-r--r-- | src/yuzu/bootmanager.cpp | 7 |
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(); |
