mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-03 02:23:48 +08:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user