mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
fixed bug with resolution
This commit is contained in:
parent
742349dec3
commit
ab028e0abc
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user