diff options
| author | ne_mene <[email protected]> | 2026-03-01 22:39:18 +0100 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-01 22:39:18 +0100 |
| commit | 5994a370b9279b53be82bc97965e4527d2a41f81 (patch) | |
| tree | 94e9be666d7f16a560b535cabd2a8a06a496ffcb /src/tsar.c | |
| parent | 82c277b643a3ba65ca62e6e0bd938072feeee000 (diff) | |
padding
Diffstat (limited to 'src/tsar.c')
| -rw-r--r-- | src/tsar.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -129,6 +129,8 @@ void draw_comp_set(float pos_ratio, comp_t **set, int size) { } int x = (bar_width - width) * pos_ratio; + x += padding * 2*(0.5 - pos_ratio); // Magic formula lol + int y = (bar_height - font->height) / 2; for (int i = 0; i < size; i++) { comp_t *comp = set[i]; |
