aboutsummaryrefslogtreecommitdiff
path: root/go/ui/button.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-10-07 21:35:16 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-10-08 10:48:55 +0200
commit0bc5bd306f274aa60b075fd8e0167e1ee4f28845 (patch)
tree9ebe8abd51efb2653212ddab91179bb51614b064 /go/ui/button.go
parentd4a314f5e2e0e11a1bb30728b47d70ea56a75771 (diff)
downloadmuhqs-game-0bc5bd306f274aa60b075fd8e0167e1ee4f28845.tar.gz
muhqs-game-0bc5bd306f274aa60b075fd8e0167e1ee4f28845.zip
switch to new vector API for drawing paths
Diffstat (limited to 'go/ui/button.go')
-rw-r--r--go/ui/button.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/button.go b/go/ui/button.go
index 5bda91aa..42cbe304 100644
--- a/go/ui/button.go
+++ b/go/ui/button.go
@@ -63,7 +63,7 @@ func (b *SimpleButton) drawLabel(img *ebiten.Image) {
func (b *SimpleButton) renderRect() *ebiten.Image {
img := ebiten.NewImage(b.Width, b.Height)
- vector.DrawFilledRect(img, float32(0), float32(0), float32(b.Width), float32(b.Height), b.Bg, false)
+ vector.FillRect(img, float32(0), float32(0), float32(b.Width), float32(b.Height), b.Bg, false)
b.drawLabel(img)
return img
}
@@ -71,7 +71,7 @@ func (b *SimpleButton) renderRect() *ebiten.Image {
func (b *SimpleButton) renderCircle() *ebiten.Image {
img := ebiten.NewImage(b.Width, b.Height)
- vector.DrawFilledCircle(img, float32(b.Width)/2, float32(b.Height)/2, float32(b.Width/2), b.Bg, false)
+ vector.FillCircle(img, float32(b.Width)/2, float32(b.Height)/2, float32(b.Width/2), b.Bg, false)
b.drawLabel(img)
return img
}