[solved] [libgdx] Resize game window and/or enable/disable fullscreen on-the-fly

Is there anyway to directly change the game resolution and/or toggle fullscreen on-the-fly? I’m using libgdx, and I’m assuming I can only do the mentioned things in the desktop source. I don’t want to set the fullscreen and resolution when the game starts; I want to set it mid-game (e.g. settings menu and hitting the apply button).

This isn’t exactly a problem, it’s just been in the back of my head for some time and the documentation doesn’t appear to say anything (that or I completely missed it).

Thanks!

Use Gdx.graphics.setDisplayMode(int width, int height, boolean fullscreen)

Wow, sometimes I wonder how I miss things in the documentation…

Thank you so much!