Skip to content

Commit f3ac814

Browse files
committed
feat: shorten title
1 parent ecd3f66 commit f3ac814

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/ui.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
#include "scheduler.h"
1616
#include "settings.h"
1717

18-
#define RIGHTED_TEXT_X(text) (MAX_EFFECTIVE_X - (sizeof(text) - 1) + 1)
19-
#define CENTRED_TEXT_X(text) ((MAX_EFFECTIVE_X - (sizeof(text) - 1)) / 2)
20-
2118
#define DEVICE_X 1
2219
#define FM_DEVICE_Y 3
2320
#define PSG_DEVICE_Y 14
@@ -61,7 +58,6 @@
6158

6259
#define UI_CHANGE_TTL (50 * 3)
6360

64-
static const char HEADER[] = "Mega Drive MIDI Interface";
6561
static const char MIDI_CH_TEXT[16][3] = { " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9",
6662
"10", "11", "12", "13", "14", "15", "16" };
6763
static const char DEV_CH_TEXT[10][2] = { "1", "2", "3", "4", "5", "6", "1", "2", "3", "4" };
@@ -336,8 +332,8 @@ static void set_tile(u16 tileIndex, u8 pal, u16 x, u16 y)
336332

337333
static void print_header(void)
338334
{
339-
draw_text(HEADER, 5, 0);
340-
draw_text(BUILD, RIGHTED_TEXT_X(BUILD), 0);
335+
draw_text("MDMI", 0, 0);
336+
draw_text(BUILD, 5, 0);
341337

342338
VDP_loadTileSet(&ts_borders, TILE_BORDERS_INDEX, DMA);
343339

0 commit comments

Comments
 (0)