ses layout
authoryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 10:14:53 +0000 (18:14 +0800)
committeryu.dongliang <18588496441@163.com>
Thu, 13 Jul 2023 10:14:53 +0000 (18:14 +0800)
ses_layout.c

index 2e55307931e6b4f8802d0bfaf3820a77b46597e6..64747c1944abada761bc29e014fe20de4a5a3331 100644 (file)
@@ -593,8 +593,8 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                        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, 20);
-                       cairo_move_to         (cr, l->x0 - 10, l->y0 + 5);
+                       cairo_set_font_size   (cr, 24);
+                       cairo_move_to         (cr, l->x0 - 20, l->y0 + 5);
                        cairo_show_text       (cr, text);
 
                        cairo_stroke(cr);
@@ -771,7 +771,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                }
        }
 
-       cairo_surface_write_to_png(surface, "./1.png");
+       cairo_surface_write_to_png(surface, "./2.png");
 
        cairo_destroy(cr);
        cairo_surface_destroy(surface);