diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:16:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:17:17 +0100 |
| commit | 147bfc12107971e585b39bd3b75898e5f2eb4f55 (patch) | |
| tree | 026c2b6bc6da16bccc0ec370c65e0be14fef1b88 /go/ui/buffer.go | |
| parent | d5e078ec59002f519a040fb88c36ea76ce6ce207 (diff) | |
| download | muhqs-game-147bfc12107971e585b39bd3b75898e5f2eb4f55.tar.gz muhqs-game-147bfc12107971e585b39bd3b75898e5f2eb4f55.zip | |
intermeditae commit
Diffstat (limited to 'go/ui/buffer.go')
| -rw-r--r-- | go/ui/buffer.go | 4 |
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 } |
