v0.8.0a: reduced the minimum window size in desktop mode

This commit is contained in:
Evan Debenham 2020-04-27 01:11:38 -04:00
parent e1fb7600df
commit 8b40399aa7
2 changed files with 3 additions and 3 deletions

View File

@ -267,8 +267,8 @@ public class SPDSettings extends GameSettings {
public static Point windowResolution(){
return new Point(
getInt( KEY_WINDOW_WIDTH, 960, 960, Integer.MAX_VALUE ),
getInt( KEY_WINDOW_HEIGHT, 640, 640, Integer.MAX_VALUE )
getInt( KEY_WINDOW_WIDTH, 960, 480, Integer.MAX_VALUE ),
getInt( KEY_WINDOW_HEIGHT, 640, 320, Integer.MAX_VALUE )
);
}

View File

@ -126,7 +126,7 @@ public class DesktopLauncher {
SPDSettings.set( new Lwjgl3Preferences( SPDSettings.DEFAULT_PREFS_FILE, basePath) );
FileUtils.setDefaultFileProperties( Files.FileType.External, basePath );
config.setWindowSizeLimits( 960, 640, -1, -1 );
config.setWindowSizeLimits( 480, 320, -1, -1 );
Point p = SPDSettings.windowResolution();
config.setWindowedMode( p.x, p.y );
config.setAutoIconify( true );