Updated max window in Windows platform (#13881)

* Updated max window in Windows platform

* Updated to add tolerance of 30px
This commit is contained in:
Vignesh B 2025-09-04 16:34:14 +05:30 committed by GitHub
parent 8c591ac9fa
commit d792199bbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {