From 07b36c858c74bce959a329b0d94d3af2b100e7e7 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 18 Jul 2023 22:20:40 +0800 Subject: [PATCH] tmp --- ses_layout.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index d48964e..509d49e 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -785,11 +785,11 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ } uint8_t text[64]; - snprintf(text, sizeof(text) - 1, "%ld_%ld", el->id, el->dfo); + snprintf(text, sizeof(text) - 1, "%ld", el->id); cairo_select_font_face(cr, "Georgia", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_set_font_size (cr, 24); - cairo_move_to (cr, l->x0 - 40, l->y0 + 5); + cairo_move_to (cr, l->x0 - 20, l->y0 + 5); cairo_show_text (cr, text); cairo_stroke(cr); @@ -984,12 +984,6 @@ int ses_layout_board(ScfEboard* b) y = f->y; w = f->w; h = f->h; - - loops = scf_vector_alloc(); - if (!loops) - return -ENOMEM; - - ses_loop_function(f, loops); } ses_layout_draw(b, x, y, w, h); -- 2.25.1