We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c4a341 commit fc372b2Copy full SHA for fc372b2
2 files changed
src/rmkit/fb/fb.cpy
@@ -1014,7 +1014,7 @@ namespace framebuffer:
1014
return um
1015
1016
1017
- static shared_ptr<FB> _FB
+ extern shared_ptr<FB> _FB = nullptr
1018
1019
// function: framebuffer::get
1020
// this function returns the app's framebuffer
src/rmkit/fb/stb_text.cpy
@@ -20,8 +20,8 @@
20
#define FONT_BUFFER_SIZE 24<<20
21
namespace stbtext:
22
// 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;
+ extern unsigned char font_buffer[FONT_BUFFER_SIZE] = {}
+ extern stbtt_fontinfo font = {}
25
extern bool did_setup = false
26
extern bool GRAYSCALE = false
27
0 commit comments