From e2bc6ee40b2945890add5427c27a9ee3594c3a7c Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 10 Jul 2023 16:47:06 +0800 Subject: [PATCH] tmp --- ses_layout.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index 7065a10..d4af27d 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -416,7 +416,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, bx + bw, by + bh); cr = cairo_create (surface); - cairo_set_line_width(cr, 2); + cairo_set_line_width(cr, 1); cairo_set_source_rgb(cr, 1, 1, 1); cairo_rectangle (cr, 0, 0, bx + bw, by + bh); cairo_fill(cr); @@ -426,11 +426,9 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ size_t j; size_t k; - double colors[7][3] = + double colors[5][3] = { - {1, 0, 0}, {0, 1, 0}, - {0, 0, 1}, {1, 0, 1}, {1, 1, 0}, @@ -445,9 +443,9 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ for (j = 0; j < f->n_elines; j++) { el = f->elines[j]; - double red = colors[j % 7][0]; - double green = colors[j % 7][1]; - double blue = colors[j % 7][2]; + double red = colors[j % 5][0]; + double green = colors[j % 5][1]; + double blue = colors[j % 5][2]; cairo_set_source_rgb(cr, red, green, blue); -- 2.25.1