commit c6ab6267408daabd3ef029c969e167eadcc8be7d parent eabfff3c36ccbfe0368a4392ede74a7b7eb34319 Author: Fang He <hf.enigma@gmail.com> Date: Thu, 31 Oct 2019 14:40:40 +0800 fix text alignment Diffstat:
| M | unlock_indicator.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-) diff --git 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; }
