From fa75caf9f74bb5ad69cc953d52ba26667b7d9562 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 17 Mar 2017 22:31:59 +0900 Subject: fmdsp: display current filename --- fmdsp/fmdsp_sprites.h | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'fmdsp/fmdsp_sprites.h') diff --git a/fmdsp/fmdsp_sprites.h b/fmdsp/fmdsp_sprites.h index ba1a3e9..de6c839 100644 --- a/fmdsp/fmdsp_sprites.h +++ b/fmdsp/fmdsp_sprites.h @@ -44,6 +44,16 @@ enum { PLAYING_Y = 324, PLAYING_W = 72, PLAYING_H = 9, + FILEBAR_X = 80, + FILEBAR_MUSIC_X = FILEBAR_X + 5, + FILEBAR_FILE_X = FILEBAR_MUSIC_X + 26, + FILEBAR_W = 2, + FILEBAR_H = 7, + FILEBAR_TRI_X = FILEBAR_FILE_X + 22, + FILEBAR_TRI_Y = PLAYING_Y+4, + FILEBAR_TRI_W = 3, + FILEBAR_TRI_H = 3, + FILEBAR_FILENAME_X = FILEBAR_TRI_X + 8, }; enum { @@ -188,7 +198,7 @@ static const uint8_t s_palettes[PALETTE_NUM][FMDSP_PALETTE_COLORS*3] = { #undef LCD -static const uint8_t s_num[10][NUM_W*NUM_H] = { +static const uint8_t s_num[11][NUM_W*NUM_H] = { { 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 2, 0, 0, 0, 3, 0, @@ -318,6 +328,19 @@ static const uint8_t s_num[10][NUM_W*NUM_H] = { 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, + }, + { + 0, 0, 0, 3, 3, 3, 0, 0, + 0, 0, 3, 0, 0, 0, 3, 0, + 0, 0, 3, 0, 0, 0, 3, 0, + 0, 0, 3, 0, 0, 0, 3, 0, + 0, 0, 3, 0, 0, 0, 3, 0, + 0, 0, 0, 3, 3, 0, 0, 0, + 0, 3, 0, 0, 0, 3, 0, 0, + 0, 3, 0, 0, 0, 3, 0, 0, + 0, 3, 0, 0, 0, 3, 0, 0, + 0, 3, 0, 0, 0, 3, 0, 0, + 0, 0, 3, 3, 3, 0, 0, 0, } }; static const uint8_t s_key_bg[KEY_W*KEY_H] = { @@ -419,3 +442,18 @@ static const uint8_t s_playing[PLAYING_W*PLAYING_H] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, }; +static const uint8_t s_filebar[FILEBAR_W*FILEBAR_H] = { + 2, 2, + 2, 2, + 2, 2, + 2, 2, + 2, 2, + 2, 2, + 2, 2, +}; + +static const uint8_t s_filebar_tri[FILEBAR_TRI_W*FILEBAR_TRI_H] = { + 2, 0, 0, + 2, 2, 0, + 2, 2, 2, +}; -- cgit v1.2.3