aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-05-30 15:17:39 +0200
committerBad Diode <bd@badd10de.dev>2023-05-30 15:17:39 +0200
commit9b510f2346d41a7d110334d1ca752fd3a81a3fc6 (patch)
treeac1dab5f10ee4e5b250f83e47111c9734ec37b4b
parentd50d02469bef6d5e9bcb5030e6fa32ef951961ae (diff)
downloadstepper-9b510f2346d41a7d110334d1ca752fd3a81a3fc6.tar.gz
stepper-9b510f2346d41a7d110334d1ca752fd3a81a3fc6.zip
Nudge the bpm box sligthly
-rw-r--r--src/drawing.c12
1 files 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) {
111 case R_COL_BPM: { 111 case R_COL_BPM: {
112 x0 = BPM_START_X; 112 x0 = BPM_START_X;
113 x1 = x0 + R_COL_W; 113 x1 = x0 + R_COL_W;
114 y = BPM_START_Y + BPM_H + 2; 114 y = BPM_START_Y + BPM_H + 0;
115 } break; 115 } break;
116 case R_COL_STOP: { 116 case R_COL_STOP: {
117 x0 = STOP_START_X; 117 x0 = STOP_START_X;
@@ -279,20 +279,20 @@ draw_stop() {
279void 279void
280draw_bpm() { 280draw_bpm() {
281 size_t x = BPM_START_X; 281 size_t x = BPM_START_X;
282 size_t y = BPM_START_Y; 282 size_t y = BPM_START_Y + 2;
283 283
284 // Draw bounding box. 284 // Draw bounding box.
285 draw_filled_rect(x, y, x + R_COL_W, y + BPM_H, COL_BG); 285 draw_filled_rect(x, y, x + R_COL_W, y + BPM_H - 4, COL_BG);
286 draw_rect(x, y, x + R_COL_W, y + BPM_H, COL_FG); 286 draw_rect(x, y, x + R_COL_W, y + BPM_H - 4, COL_FG);
287 draw_line(x + 5, y, x + 19, y, COL_BG); 287 draw_line(x + 5, y, x + 19, y, COL_BG);
288 txt_drawf_small("BPM", x + 5, y - 4, COL_FG); 288 txt_drawf_small("BPM", x + 5, y - 4, COL_FG);
289 289
290 // Make sure its horizontally centered if only 2 digits 290 // Make sure its horizontally centered if only 2 digits
291 int bpm = patterns[pattern_selection_loc].bpm; 291 int bpm = patterns[pattern_selection_loc].bpm;
292 if (bpm >= 100) { 292 if (bpm >= 100) {
293 txt_drawf("%d", x + 3, y + 7, COL_FG, bpm); 293 txt_drawf("%d", x + 3, y + 5, COL_FG, bpm);
294 } else { 294 } else {
295 txt_drawf("%d", x + 6, y + 7, COL_FG, bpm); 295 txt_drawf("%d", x + 6, y + 5, COL_FG, bpm);
296 } 296 }
297} 297}
298 298