Skip to content

Commit 2940192

Browse files
committed
fix some stbtext extern fields
1 parent 01061ab commit 2940192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rmkit/fb/stb_text.cpy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define FONT_BUFFER_SIZE 24<<20
2121
namespace stbtext:
2222
// TODO: fix the max size read to prevent overflows (or just abort on really large files)
23-
static unsigned char font_buffer[FONT_BUFFER_SIZE]
24-
static stbtt_fontinfo font;
23+
extern unsigned char font_buffer[FONT_BUFFER_SIZE] = {}
24+
extern stbtt_fontinfo font = {}
2525
extern bool did_setup = false
2626
extern bool GRAYSCALE = false
2727

0 commit comments

Comments
 (0)