Fix Desktop window borders

This commit is contained in:
vegeta1k95
2023-02-17 17:24:59 +01:00
parent 01204f5aee
commit ec2be2ceca
2 changed files with 4 additions and 5 deletions

View File

@ -44,6 +44,7 @@ internal object DesktopLauncher {
config.setWindowIcon("ExtraImages/Icon.png")
config.setTitle("Unciv")
config.setHdpiMode(HdpiMode.Logical)
config.setMaximized(true)
config.setWindowSizeLimits(120, 80, -1, -1)
// We don't need the initial Audio created in Lwjgl3Application, HardenGdxAudio will replace it anyway.
@ -63,8 +64,6 @@ internal object DesktopLauncher {
FileHandle(SETTINGS_FILE_NAME).writeString(json().toJson(settings), false) // so when we later open the game we get fullscreen
}
config.setWindowedMode(settings.windowState.width.coerceAtLeast(120), settings.windowState.height.coerceAtLeast(80))
if (!isRunFromJAR) {
UniqueDocsWriter().write()