From fc2aaefb0f799f677792b1963773b778cb798975 Mon Sep 17 00:00:00 2001 From: fincs Date: Mon, 13 Sep 2021 19:01:34 +0200 Subject: [PATCH] framebufferCreate: actually set NWindow dimensions (fix #568) --- nx/source/display/framebuffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nx/source/display/framebuffer.c b/nx/source/display/framebuffer.c index 00a35fc8..bf2ff111 100644 --- a/nx/source/display/framebuffer.c +++ b/nx/source/display/framebuffer.c @@ -29,6 +29,10 @@ Result framebufferCreate(Framebuffer* fb, NWindow *win, u32 width, u32 height, u if (!fb || !nwindowIsValid(win) || !width || !height || format < PIXEL_FORMAT_RGBA_8888 || format > PIXEL_FORMAT_RGBA_4444 || num_fbs < 1 || num_fbs > 3) return MAKERESULT(Module_Libnx, LibnxError_BadInput); + rc = nwindowSetDimensions(win, width, height); + if (R_FAILED(rc)) + return rc; + rc = nvInitialize(); if (R_SUCCEEDED(rc)) { rc = nvMapInit();