From 997350ca600dc380c204b8aaeb50bb6d6aeb39c6 Mon Sep 17 00:00:00 2001 From: esimov Date: Mon, 30 Oct 2023 18:46:19 +0200 Subject: [PATCH] Fixed displaced cloth position on hi-res screens --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index dcca2fc..e5a1553 100644 --- a/main.go +++ b/main.go @@ -176,10 +176,10 @@ func loop(w *app.Window) error { hud.winOffsetX = 0 hud.winOffsetY = 0 - if e.Size.X != windowWidth { + if defaultWindowWidth != windowWidth { hud.winOffsetX = float64(e.Size.X-windowWidth) * 0.5 } - if e.Size.Y != windowHeight { + if defaultWindowHeigth != windowHeight { hud.winOffsetY = float64(e.Size.Y-windowHeight) * 0.25 }