_simplify_draw()
authoryu.dongliang <18588496441@163.com>
Sun, 12 Nov 2023 10:54:15 +0000 (18:54 +0800)
committeryu.dongliang <18588496441@163.com>
Sun, 12 Nov 2023 10:54:15 +0000 (18:54 +0800)
ses_step_simplify.c

index 3c2aaac1270680948d7d7c2e7d2339748d3071e0..507e08aa136fe0698565ae6ba6712d99f716a4ed 100644 (file)
@@ -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);
                        }