From 0bc5bd306f274aa60b075fd8e0167e1ee4f28845 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 7 Oct 2025 21:35:16 +0200 Subject: switch to new vector API for drawing paths --- go/ui/button.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/ui/button.go') 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 } -- cgit v1.2.3