From e8fd09abf68b944b05554c82adb577514cad5ca5 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 18 Jan 2017 23:37:07 +0900 Subject: improve FMDSP and enable title display on win32 --- fmdsp/fmdsp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fmdsp/fmdsp.h') diff --git a/fmdsp/fmdsp.h b/fmdsp/fmdsp.h index 4c6af0c..a7b245a 100644 --- a/fmdsp/fmdsp.h +++ b/fmdsp/fmdsp.h @@ -2,6 +2,7 @@ #define MYON_FMDSP_H_INCLUDED #include +#include "font.h" #ifdef __cplusplus extern "C" { @@ -19,13 +20,14 @@ enum { struct fmdsp { uint8_t palette[FMDSP_PALETTE_COLORS*3]; uint8_t target_palette[FMDSP_PALETTE_COLORS*3]; + const struct fmdsp_font *font98; + }; struct fmdriver_work; -void fmdsp_init(struct fmdsp *fmdsp); +void fmdsp_init(struct fmdsp *fmdsp, const struct fmdsp_font *font); void fmdsp_vram_init(struct fmdsp *fmdsp, struct fmdriver_work *work, - const uint8_t *font, uint8_t *vram); void fmdsp_update(struct fmdsp *fmdsp, const struct fmdriver_work *work, uint8_t *vram); void fmdsp_vrampalette(struct fmdsp *fmdsp, const uint8_t *vram, uint8_t *vram32, int stride); -- cgit v1.2.3