cfg.fullscreen=true;
makes it totally fullscreen.
cfg.width = Gdx.graphics.getWidth();
cfg.height = Gdx.graphics.getHeight();
makes it so the size is the screen size but it is still not maximized(I can hit the little box on the top right to make it snuggly locked into the screen. I just realized this was a nuisance after I launched my program several times and had to keep maximizing it.
Is there a simple way to... cfg.startMaximized=true?
This is available nowadays:
cfg.setMaximized(true)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With