From: yu.dongliang <18588496441@163.com> Date: Thu, 13 Jul 2023 10:14:53 +0000 (+0800) Subject: ses layout X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=8584d206bcc9b601eb2e6183fd6c8107a14f5717;p=ses.git ses layout --- diff --git a/ses_layout.c b/ses_layout.c index 2e55307..64747c1 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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);