diff options
Diffstat (limited to 'src/drawing.c')
-rw-r--r-- | src/drawing.c | 12 |
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() { | |||
279 | void | 279 | void |
280 | draw_bpm() { | 280 | draw_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 | ||