mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
modtrezorui: add extern to includes
This commit is contained in:
parent
affb893cb1
commit
f443407fae
@ -1,3 +1,3 @@
|
||||
#include <stdint.h>
|
||||
|
||||
const uint8_t * const Font_Roboto_Bold_20[126 + 1 - 32];
|
||||
extern const uint8_t * const Font_Roboto_Bold_20[126 + 1 - 32];
|
||||
|
@ -1,3 +1,3 @@
|
||||
#include <stdint.h>
|
||||
|
||||
const uint8_t * const Font_Roboto_Regular_20[126 + 1 - 32];
|
||||
extern const uint8_t * const Font_Roboto_Regular_20[126 + 1 - 32];
|
||||
|
@ -1,3 +1,3 @@
|
||||
#include <stdint.h>
|
||||
|
||||
const uint8_t * const Font_RobotoMono_Regular_20[126 + 1 - 32];
|
||||
extern const uint8_t * const Font_RobotoMono_Regular_20[126 + 1 - 32];
|
||||
|
@ -13,7 +13,7 @@ def process_face(name, style, size):
|
||||
fontname = '%s_%s_%d' % (name.lower(), style.lower(), size)
|
||||
with open('font_%s.h' % fontname, 'wt') as f:
|
||||
f.write('#include <stdint.h>\n\n')
|
||||
f.write('const uint8_t * const Font_%s_%s_%d[%d + 1 - %d];\n' % (name, style, size, MAX_GLYPH, MIN_GLYPH))
|
||||
f.write('extern const uint8_t * const Font_%s_%s_%d[%d + 1 - %d];\n' % (name, style, size, MAX_GLYPH, MIN_GLYPH))
|
||||
with open('font_%s.c' % fontname, 'wt') as f:
|
||||
f.write('#include "font_%s.h"\n\n' % fontname)
|
||||
f.write('// first two bytes are width and height of the glyph\n')
|
||||
|
Loading…
Reference in New Issue
Block a user