aboutsummaryrefslogtreecommitdiff
path: root/fmdsp/font_fmdsp_small.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-02-12 11:04:51 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-02-12 11:04:51 +0900
commitd8064039c77f3d599f63c09196d0696118813ac7 (patch)
treefcef4e66045bb8a39dc89e08cdf5f31888266109 /fmdsp/font_fmdsp_small.c
parent93dde8cf16973e07e687e7e0740cf02c38786c38 (diff)
fmdsp: add status line
Diffstat (limited to 'fmdsp/font_fmdsp_small.c')
-rw-r--r--fmdsp/font_fmdsp_small.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/fmdsp/font_fmdsp_small.c b/fmdsp/font_fmdsp_small.c
new file mode 100644
index 0000000..d25f760
--- /dev/null
+++ b/fmdsp/font_fmdsp_small.c
@@ -0,0 +1,14 @@
+#include "font.h"
+
+#include "font_fmdsp_small_data.h"
+
+static const void *fmdsp_font_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 &fontdat[addr*6];
+}
+
+const struct fmdsp_font font_fmdsp_small = {
+ fmdsp_font_get, 0, 5, 6
+};