diff options
author | Erich Eckner <git@eckner.net> | 2018-10-23 10:04:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-10-23 10:04:04 +0200 |
commit | 80e3c3ce5744272d3eef9f9b32f7da5ae96088cd (patch) | |
tree | 43a0cad03bd1dea9eef4416df604767cfa5e7aa9 /fonts.h | |
parent | d646809abf052fd949ca839395735a91d7084198 (diff) | |
download | anzeige-80e3c3ce5744272d3eef9f9b32f7da5ae96088cd.tar.xz |
fonts: put rendering into a function
Diffstat (limited to 'fonts.h')
-rw-r--r-- | fonts.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,6 @@ -char const symbols[96*5] = { +#define SYMBOL_WIDTH 5 + +static char const symbols[96 * SYMBOL_WIDTH] = { 0x00,0x00,0x00,0x00,0x00, // space 0x00,0x00,0x2F,0x00,0x00, // ! 0x00,0x07,0x00,0x07,0x00, // " @@ -97,3 +99,5 @@ char const symbols[96*5] = { // 0x7f .. 0xaf missing 0x00,0x02,0x05,0x02,0x00 // ° }; + +void render(unsigned char *input, int input_len, unsigned char *output, int max_output_len, int skip_unprintables); |