mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Updated max window in Windows platform (#13881)
* Updated max window in Windows platform * Updated to add tolerance of 30px
This commit is contained in:
parent
8c591ac9fa
commit
d792199bbf
@ -68,7 +68,10 @@ enum class DesktopScreenMode : ScreenMode {
|
||||
|
||||
Gdx.graphics.setWindowedMode(width, height)
|
||||
|
||||
return width == maximumWindowBounds.width && height == maximumWindowBounds.height
|
||||
val widthDiff = maximumWindowBounds.width - width
|
||||
val heightDiff = maximumWindowBounds.height - height
|
||||
val tolerance = 30
|
||||
return widthDiff <= tolerance && heightDiff <= tolerance
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
Loading…
x
Reference in New Issue
Block a user