From 5a8af1f670709d6cd28ad5edda223d9ecbc03bc3 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 13 Aug 2017 23:08:54 +0900 Subject: added levelmeter --- fmdsp/fmdsp_sprites.h | 119 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 117 insertions(+), 2 deletions(-) (limited to 'fmdsp/fmdsp_sprites.h') diff --git a/fmdsp/fmdsp_sprites.h b/fmdsp/fmdsp_sprites.h index d9d71ac..c942e24 100644 --- a/fmdsp/fmdsp_sprites.h +++ b/fmdsp/fmdsp_sprites.h @@ -14,8 +14,8 @@ enum { TDETAIL_GT_X = TDETAIL_VL_V_X+19, TDETAIL_GT_V_X = TDETAIL_GT_X+13, TDETAIL_DT_X = TDETAIL_GT_V_X+23, - TDETAIL_DT_S_X = TDETAIL_DT_X+12, - TDETAIL_DT_V_X = TDETAIL_DT_S_X+5, + TDETAIL_DT_S_X = TDETAIL_DT_X+13, + TDETAIL_DT_V_X = TDETAIL_DT_S_X+4, TDETAIL_M_X = 249, TDETAIL_M_V_X = TDETAIL_M_X+8, NUM_X = 31, @@ -166,6 +166,16 @@ enum { FLOPPY_Y = 87, LEVEL_TEXT_X = 318, LEVEL_TEXT_Y = 290, + LEVEL_X = 353-16, + LEVEL_Y = 227, + LEVEL_DISP_W = 14, + LEVEL_W = 16, + PANPOT_W = 15, + PANPOT_H = 15, + PANPOT_Y = LEVEL_Y+64, + LEVEL_TRACK_Y = LEVEL_Y-9, + LEVEL_PROG_Y = PANPOT_Y+15, + LEVEL_KEY_Y = LEVEL_PROG_Y+7, }; enum { @@ -867,3 +877,108 @@ static uint8_t s_floppy[FLOPPY_W*FLOPPY_H] = { 0,0,0,0,3,3,3,0,0,0,3,3,3,3,0,0,3,3,3,3,0,3,0,0,0,0,0,0,3,3,3,0,0,3,0,0,0,3, 0,0,3,3,3,0,0,3,3,3,3,3,0,0,3,3,3,0,0,0,0,0,3,0, }; + +static uint8_t s_panpot[6][PANPOT_W*PANPO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