From d75fe85603c46fd2df2f82d4ef854dad0b061686 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sun, 12 Nov 2023 18:54:15 +0800 Subject: [PATCH] _simplify_draw() --- ses_step_simplify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ses_step_simplify.c b/ses_step_simplify.c index 3c2aaac..507e08a 100644 --- a/ses_step_simplify.c +++ b/ses_step_simplify.c @@ -93,7 +93,7 @@ static int _simplify_draw(ScfEfunction* f, uint32_t bx, uint32_t by, uint32_t bw cairo_set_font_size(cr, 20); - cairo_move_to (cr, l->x0 - 24, l->y0 + 24); + cairo_move_to (cr, (l->x0 + l->x1) / 2 - 24, l->y0 + 24); cairo_show_text(cr, text); cairo_stroke(cr); } -- 2.25.1