fixed bug with resolution

This commit is contained in:
IonutParau 2025-06-30 19:03:05 +02:00
parent 742349dec3
commit ab028e0abc

View File

@ -207,6 +207,7 @@ void nni_gpu_setResolution(nni_gpu *gpu, void *_, nn_component *component, nn_co
if(w > mw) w = mw; if(w > mw) w = mw;
if(h > mh) h = mh; if(h > mh) h = mh;
nn_setResolution(gpu->currentScreen, w, h); nn_setResolution(gpu->currentScreen, w, h);
nn_setViewport(gpu->currentScreen, w, h);
nn_return(computer, nn_values_boolean(changed)); nn_return(computer, nn_values_boolean(changed));