diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-10-07 21:35:16 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-10-08 10:48:55 +0200 |
| commit | 0bc5bd306f274aa60b075fd8e0167e1ee4f28845 (patch) | |
| tree | 9ebe8abd51efb2653212ddab91179bb51614b064 /go/ui/button.go | |
| parent | d4a314f5e2e0e11a1bb30728b47d70ea56a75771 (diff) | |
| download | muhqs-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.go | 4 |
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 } |
