diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-28 11:34:53 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:59 +0100 |
| commit | d7bac40f11fc18121ca3d26175fb85f187a6f24c (patch) | |
| tree | 0cfd498fa94fdcef079761d04768796f7d8e3ea4 /go/ui/utils.go | |
| parent | 660c175c66c5ba6af55c1c86a59d49736c191115 (diff) | |
| download | muhqs-game-d7bac40f11fc18121ca3d26175fb85f187a6f24c.tar.gz muhqs-game-d7bac40f11fc18121ca3d26175fb85f187a6f24c.zip | |
migrate to ebiten/v2/text/v2
Diffstat (limited to 'go/ui/utils.go')
| -rw-r--r-- | go/ui/utils.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/go/ui/utils.go b/go/ui/utils.go deleted file mode 100644 index fd15b642..00000000 --- a/go/ui/utils.go +++ /dev/null @@ -1,19 +0,0 @@ -package ui - -import ( - "image" -) - -func centerTextXOffset(b image.Rectangle) int { - return (b.Dx() / 2) - b.Min.X -} - -func centerTextYOffset(b image.Rectangle) int { - return (b.Dy() / 2) + b.Min.Y -} - -func centerText(b image.Rectangle) (x int, y int) { - x = centerTextXOffset(b) - y = centerTextYOffset(b) - return -} |
