diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-12 10:35:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-12 10:35:57 +0300 |
| commit | 6b8d82a7e32c631d8ec56b3d332c3c675b01a38c (patch) | |
| tree | 6d95b2517e9531b8ca21ad5144d6820658916196 /src/c/fastforge.c | |
| parent | 001599cff544e716ef832fa24f0ac24b61c59ff0 (diff) | |
fix: add missing 18h progress tick (task 82)
Diffstat (limited to 'src/c/fastforge.c')
| -rw-r--r-- | src/c/fastforge.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c/fastforge.c b/src/c/fastforge.c index dd16a37..87656d2 100644 --- a/src/c/fastforge.c +++ b/src/c/fastforge.c @@ -84,10 +84,14 @@ static void timer_progress_update_proc(Layer *layer, GContext *ctx) { graphics_context_set_stroke_color(ctx, GColorBlack); int tick_12h_x = tick_x_for_seconds(total_seconds, 12 * 3600, bounds.size.w); + int tick_18h_x = tick_x_for_seconds(total_seconds, 18 * 3600, bounds.size.w); int tick_24h_x = tick_x_for_seconds(total_seconds, 24 * 3600, bounds.size.w); if (tick_12h_x >= 0) { graphics_draw_line(ctx, GPoint(tick_12h_x, 0), GPoint(tick_12h_x, bounds.size.h - 1)); } + if (tick_18h_x >= 0) { + graphics_draw_line(ctx, GPoint(tick_18h_x, 0), GPoint(tick_18h_x, bounds.size.h - 1)); + } if (tick_24h_x >= 0) { graphics_draw_line(ctx, GPoint(tick_24h_x, 0), GPoint(tick_24h_x, bounds.size.h - 1)); } |
