mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
examples/ui: Refactoring
This commit is contained in:
parent
a2225abcf9
commit
d139b8ad6e
@ -373,8 +373,7 @@ func (t *TextBox) Draw(dst *ebiten.Image) {
|
||||
if y < -lineHeight {
|
||||
continue
|
||||
}
|
||||
_, h := t.viewSize()
|
||||
if y >= h+lineHeight {
|
||||
if _, h := t.viewSize(); y >= h+lineHeight {
|
||||
continue
|
||||
}
|
||||
text.Draw(t.contentBuf, line, uiFont, x, y, color.Black)
|
||||
|
Loading…
Reference in New Issue
Block a user