diff options
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 } |
