From c178dd1e7a1ffc3fa1ea8939974835e6cba22e41 Mon Sep 17 00:00:00 2001 From: fincs Date: Mon, 13 Sep 2021 19:09:17 +0200 Subject: [PATCH] DkSwapchain: properly configure NWindow dimensions (see switchbrew/libnx@fc2aaefb) --- source/dk_swapchain.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/dk_swapchain.cpp b/source/dk_swapchain.cpp index df6abb6..8f3394b 100644 --- a/source/dk_swapchain.cpp +++ b/source/dk_swapchain.cpp @@ -53,6 +53,10 @@ DkResult Swapchain::initialize(void* nativeWindow, DkImage const* const images[] return DkResult_BadState; #endif + // Configure NWindow dimensions + if (R_FAILED(nwindowSetDimensions(m_nwin, width, height))) + return DkResult_Fail; + // Set up NvGraphicBuffer template NvGraphicBuffer grbuf = {}; grbuf.header.num_ints = (sizeof(NvGraphicBuffer) - sizeof(NativeHandle)) / 4;