From 9b510f2346d41a7d110334d1ca752fd3a81a3fc6 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 30 May 2023 15:17:39 +0200 Subject: Nudge the bpm box sligthly --- src/drawing.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drawing.c b/src/drawing.c index de494a6..4481374 100644 --- a/src/drawing.c +++ b/src/drawing.c @@ -111,7 +111,7 @@ draw_right_col_cursor(int i, u8 clr) { case R_COL_BPM: { x0 = BPM_START_X; x1 = x0 + R_COL_W; - y = BPM_START_Y + BPM_H + 2; + y = BPM_START_Y + BPM_H + 0; } break; case R_COL_STOP: { x0 = STOP_START_X; @@ -279,20 +279,20 @@ draw_stop() { void draw_bpm() { size_t x = BPM_START_X; - size_t y = BPM_START_Y; + size_t y = BPM_START_Y + 2; // Draw bounding box. - draw_filled_rect(x, y, x + R_COL_W, y + BPM_H, COL_BG); - draw_rect(x, y, x + R_COL_W, y + BPM_H, COL_FG); + draw_filled_rect(x, y, x + R_COL_W, y + BPM_H - 4, COL_BG); + draw_rect(x, y, x + R_COL_W, y + BPM_H - 4, COL_FG); draw_line(x + 5, y, x + 19, y, COL_BG); txt_drawf_small("BPM", x + 5, y - 4, COL_FG); // Make sure its horizontally centered if only 2 digits int bpm = patterns[pattern_selection_loc].bpm; if (bpm >= 100) { - txt_drawf("%d", x + 3, y + 7, COL_FG, bpm); + txt_drawf("%d", x + 3, y + 5, COL_FG, bpm); } else { - txt_drawf("%d", x + 6, y + 7, COL_FG, bpm); + txt_drawf("%d", x + 6, y + 5, COL_FG, bpm); } } -- cgit v1.2.1