diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-18 06:29:01 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-18 06:29:01 +0200 |
commit | d3dbe844b61e3b122020ace3bcbd254bd7b4075f (patch) | |
tree | 2448e7d45b35e1f787d6ceea5135e7815b1bfc9e /src/ui | |
parent | 0c1817062433d70ff8799425139ffccf39a19725 (diff) |
Fixed misaligned time in audio player
TODO: This is font-dependent, so should actually use visual alignment...
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/mediaui.c | 2 |
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 | } |