问题
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?
来源:https://stackoverflow.com/questions/23029588/libgdx-lwjgl-start-application-maximized