aboutsummaryrefslogtreecommitdiff
path: root/go/ui/widget.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/widget.go')
-rw-r--r--go/ui/widget.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/go/ui/widget.go b/go/ui/widget.go
index cfcdd766..4ee0caac 100644
--- a/go/ui/widget.go
+++ b/go/ui/widget.go
@@ -17,12 +17,8 @@ type WidgetBase struct {
renderImpl func() *ebiten.Image
}
-func renderDummy() *ebiten.Image {
- return nil
-}
-
func NewWidgetBase(x, y, width, height int) WidgetBase {
- return WidgetBase{x, y, width, height, nil, renderDummy}
+ return WidgetBase{X: x, Y: y, Width: width, Height: height}
}
func (w *WidgetBase) Draw(screen *ebiten.Image) {