From ab028e0abc02d4b864ce593454554e8b302a4b67 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Mon, 30 Jun 2025 19:03:05 +0200 Subject: [PATCH] fixed bug with resolution --- src/components/gpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/gpu.c b/src/components/gpu.c index e701d86..023e916 100644 --- a/src/components/gpu.c +++ b/src/components/gpu.c @@ -207,6 +207,7 @@ void nni_gpu_setResolution(nni_gpu *gpu, void *_, nn_component *component, nn_co if(w > mw) w = mw; if(h > mh) h = mh; nn_setResolution(gpu->currentScreen, w, h); + nn_setViewport(gpu->currentScreen, w, h); nn_return(computer, nn_values_boolean(changed));