From d139b8ad6ec58967c638d60adbe7605f55455c53 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 31 Jan 2018 00:49:49 +0900 Subject: [PATCH] examples/ui: Refactoring --- examples/ui/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ui/main.go b/examples/ui/main.go index 25c5accc7..1fb364159 100644 --- a/examples/ui/main.go +++ b/examples/ui/main.go @@ -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)