Skip to content

Commit

Permalink
Fixed displaced cloth position on hi-res screens
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Oct 30, 2023
1 parent b136932 commit 997350c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 997350c

Please sign in to comment.