From: yu.dongliang <18588496441@163.com> Date: Sun, 12 Nov 2023 10:54:15 +0000 (+0800) Subject: _simplify_draw() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=d75fe85603c46fd2df2f82d4ef854dad0b061686;p=ses.git _simplify_draw() --- 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); }