mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 17:07:55 -04:00
gui: fix odd window size workaround
This commit is contained in:
parent
935a46f99b
commit
c512548be1
@ -134,16 +134,10 @@ class GUIRenderer(
|
||||
val output = Vec2i(this)
|
||||
// ToDo: This is just a dirty workaround and does not fix the problem at all
|
||||
while (output.x % scale.toInt() != 0) {
|
||||
output.x--
|
||||
if (output.x < 0) {
|
||||
output.x = 0
|
||||
}
|
||||
output.x++
|
||||
}
|
||||
while (output.y % scale.toInt() != 0) {
|
||||
output.y--
|
||||
if (output.y < 0) {
|
||||
output.y = 0
|
||||
}
|
||||
output.y++
|
||||
}
|
||||
return output / scale
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user