diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-17 22:31:59 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-17 22:31:59 +0900 |
commit | fa75caf9f74bb5ad69cc953d52ba26667b7d9562 (patch) | |
tree | 93aedc0957c4d1e9024eff90e08bc6e8a4fb4a90 /fmdsp/font_fmdsp_small.c | |
parent | 10aa49dcf1e28f1cb7365123644196ad6a31a5e2 (diff) |
fmdsp: display current filename
Diffstat (limited to 'fmdsp/font_fmdsp_small.c')
-rw-r--r-- | fmdsp/font_fmdsp_small.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fmdsp/font_fmdsp_small.c b/fmdsp/font_fmdsp_small.c index d25f760..6f89797 100644 --- a/fmdsp/font_fmdsp_small.c +++ b/fmdsp/font_fmdsp_small.c @@ -1,6 +1,7 @@ #include "font.h" #include "font_fmdsp_small_data.h" +#include "font_fmdsp_medium_data.h" static const void *fmdsp_font_get(const struct fmdsp_font *font, uint16_t addr, enum fmdsp_font_type type) { @@ -12,3 +13,14 @@ static const void *fmdsp_font_get(const struct fmdsp_font *font, const struct fmdsp_font font_fmdsp_small = { fmdsp_font_get, 0, 5, 6 }; + +static const void *fmdsp_font_medium_get(const struct fmdsp_font *font, + uint16_t addr, enum fmdsp_font_type type) { + if (type != FMDSP_FONT_ANK) return 0; + if (addr >> 8) return 0; + return &fmdsp_medium_dat[addr*8]; +} + +const struct fmdsp_font font_fmdsp_medium = { + fmdsp_font_medium_get, 0, 6, 8 +}; |