tmp
authoryu.dongliang <18588496441@163.com>
Tue, 18 Jul 2023 14:20:40 +0000 (22:20 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 18 Jul 2023 14:20:40 +0000 (22:20 +0800)
ses_layout.c

index d48964ef69d563eb1c44de43c7ad185a40888dec..509d49e776de590dd533e093f9bfbfb3b9752fcf 100644 (file)
@@ -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);