diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-12-28 11:34:53 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:13 +0200 |
| commit | ba4f24e71e4970c3095971fe6c5df7f829cab3e5 (patch) | |
| tree | b305956002f828dab115f2617fb039b5b8f5d0d7 /go/ui/utils.go | |
| parent | bfab1b8f10ce006dd4822ac3e82125ec226597f5 (diff) | |
| download | muhqs-game-ba4f24e71e4970c3095971fe6c5df7f829cab3e5.tar.gz muhqs-game-ba4f24e71e4970c3095971fe6c5df7f829cab3e5.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 -} |
