aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-01 22:39:18 +0100
committerne_mene <[email protected]>2026-03-01 22:39:18 +0100
commit5994a370b9279b53be82bc97965e4527d2a41f81 (patch)
tree94e9be666d7f16a560b535cabd2a8a06a496ffcb /src/tsar.c
parent82c277b643a3ba65ca62e6e0bd938072feeee000 (diff)
padding
Diffstat (limited to 'src/tsar.c')
-rw-r--r--src/tsar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tsar.c b/src/tsar.c
index 8cb69d9..9c6a87e 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -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];