commit 7ec7b7acc589fd27701e909bdfa53d593d94c988 parent eabfff3c36ccbfe0368a4392ede74a7b7eb34319 Author: Cassandra Fox <cass@fox.mom> Date: Fri, 8 Nov 2019 17:12:48 -0800 Merge pull request #142 from h3fang/master fix text alignment x position calculation 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; }
