ebiten: Remove the error returning value from NewImage

Updates #1380
This commit is contained in:
Hajime Hoshi
2020-10-06 00:33:05 +09:00
parent 54da0d9763
commit c6053bcf14
29 changed files with 153 additions and 243 deletions

View File

@@ -358,7 +358,7 @@ func (t *TextBox) Draw(dst *ebiten.Image) {
}
if t.contentBuf == nil {
w, h := t.viewSize()
t.contentBuf, _ = ebiten.NewImage(w, h)
t.contentBuf = ebiten.NewImage(w, h)
}
t.contentBuf.Clear()