From: yu.dongliang <18588496441@163.com> Date: Tue, 18 Jul 2023 14:20:40 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=07b36c858c74bce959a329b0d94d3af2b100e7e7;p=ses.git tmp --- 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);