From c6ab6267408daabd3ef029c969e167eadcc8be7d Mon Sep 17 00:00:00 2001 From: Fang He Date: Thu, 31 Oct 2019 14:40:40 +0800 Subject: [PATCH] fix text alignment --- unlock_indicator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unlock_indicator.c b/unlock_indicator.c index 706d270..73bf7da 100644 --- a/unlock_indicator.c +++ b/unlock_indicator.c @@ -303,7 +303,7 @@ static void draw_text(cairo_t *ctx, text_t text) { break; case 0: default: - x = text.x - ((extents.width / 2) + (extents.x_bearing / 2)); + x = text.x - extents.x_advance / 2; break; }