aboutsummaryrefslogtreecommitdiff
path: root/go/ui/buffer.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-26 22:16:10 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-01-26 22:17:17 +0100
commit147bfc12107971e585b39bd3b75898e5f2eb4f55 (patch)
tree026c2b6bc6da16bccc0ec370c65e0be14fef1b88 /go/ui/buffer.go
parentd5e078ec59002f519a040fb88c36ea76ce6ce207 (diff)
downloadmuhqs-game-147bfc12107971e585b39bd3b75898e5f2eb4f55.tar.gz
muhqs-game-147bfc12107971e585b39bd3b75898e5f2eb4f55.zip
intermeditae commit
Diffstat (limited to 'go/ui/buffer.go')
-rw-r--r--go/ui/buffer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/buffer.go b/go/ui/buffer.go
index e0e6b001..c451d7fc 100644
--- a/go/ui/buffer.go
+++ b/go/ui/buffer.go
@@ -31,12 +31,12 @@ func (b *Buffer) render() *ebiten.Image {
img.Fill(BUFFER_BACKGROUND)
y := 0
for _, line := range b.lines[b.pos:] {
- bounds := text.BoundString(font.Font, line)
+ bounds := text.BoundString(font.Font18, line)
y += bounds.Dy()
if y > b.Height {
break
}
- text.Draw(img, line, font.Font, 0, y, BUFFER_FOREGROUND)
+ text.Draw(img, line, font.Font18, 0, y, BUFFER_FOREGROUND)
}
return img
}