Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LibGDX / LWJGL start application maximized

Tags:

java

libgdx

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?

like image 934
CodeCamper Avatar asked Nov 11 '22 09:11

CodeCamper


1 Answers

This is available nowadays:

cfg.setMaximized(true)
like image 90
Steven Avatar answered Nov 15 '22 07:11

Steven