mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +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 {
|
if y < -lineHeight {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
_, h := t.viewSize()
|
if _, h := t.viewSize(); y >= h+lineHeight {
|
||||||
if y >= h+lineHeight {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
text.Draw(t.contentBuf, line, uiFont, x, y, color.Black)
|
text.Draw(t.contentBuf, line, uiFont, x, y, color.Black)
|
||||||
|
Loading…
Reference in New Issue
Block a user