mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
gui: fix float errors when using scaling
This commit is contained in:
parent
e08c97cd54
commit
40869235e9
@ -79,7 +79,7 @@ class GUIRenderer(
|
||||
}
|
||||
|
||||
private fun updateResolution(windowSize: Vec2 = Vec2(context.window.size), scale: Float = profile.scale, systemScale: Vec2 = context.window.systemScale) {
|
||||
scaledSize = Vec2(windowSize.scale(systemScale, scale))
|
||||
scaledSize = Vec2(windowSize.scale(systemScale, scale)) + 0.01f
|
||||
halfSize = scaledSize / 2.0f
|
||||
resolutionUpdate = true
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user