summaryrefslogtreecommitdiff
path: root/src/ui/mediaui.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 06:29:01 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 06:29:01 +0200
commitd3dbe844b61e3b122020ace3bcbd254bd7b4075f (patch)
tree2448e7d45b35e1f787d6ceea5135e7815b1bfc9e /src/ui/mediaui.c
parent0c1817062433d70ff8799425139ffccf39a19725 (diff)
Fixed misaligned time in audio player
TODO: This is font-dependent, so should actually use visual alignment...
Diffstat (limited to 'src/ui/mediaui.c')
-rw-r--r--src/ui/mediaui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/mediaui.c b/src/ui/mediaui.c
index 4f2499b0..1c828194 100644
--- a/src/ui/mediaui.c
+++ b/src/ui/mediaui.c
@@ -104,7 +104,7 @@ static int drawSevenSegmentTime_(iInt2 pos, int color, int align, int seconds) {
104 if (align == right_Alignment) { 104 if (align == right_Alignment) {
105 pos.x -= size.x; 105 pos.x -= size.x;
106 } 106 }
107 drawRange_Text(font, addY_I2(pos, -gap_UI / 8), color, range_String(&num)); 107 drawRange_Text(font, addY_I2(pos, gap_UI / 2), color, range_String(&num));
108 deinit_String(&num); 108 deinit_String(&num);
109 return size.x; 109 return size.x;
110} 110}