diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-26 22:16:10 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:44 +0100 |
| commit | 926ca5cdd20a39e3e05aaa3486cb166718dab5ca (patch) | |
| tree | 3d7bc8a0e1e0be1ce8d92d5503bdede878e718e9 /go/ui/buffer.go | |
| parent | 8720ebf9c74d9e11001772b5c00c293fa3a8b9e5 (diff) | |
| download | muhqs-game-926ca5cdd20a39e3e05aaa3486cb166718dab5ca.tar.gz muhqs-game-926ca5cdd20a39e3e05aaa3486cb166718dab5ca.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 } |
