tmp
authoryu.dongliang <18588496441@163.com>
Mon, 10 Jul 2023 08:47:06 +0000 (16:47 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 10 Jul 2023 08:47:06 +0000 (16:47 +0800)
ses_layout.c

index 7065a1029118f3f2dc18f1f4080501aa9811d5bc..d4af27d86edbd4e02509eb4a66522d2190a121c9 100644 (file)
@@ -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);