tmp
authoryu.dongliang <18588496441@163.com>
Mon, 30 Oct 2023 03:47:25 +0000 (11:47 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 30 Oct 2023 03:47:25 +0000 (11:47 +0800)
ses_layout.c

index 354a890f6004b6e10e6e1e963162e48fd99e2a2d..83073707ea593e789e3e20dd5c33cd10820e06e4 100644 (file)
@@ -1204,14 +1204,12 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                                        cairo_move_to(cr, c->x - dx3 + dx4 + dx1,  c->y - dy3 + dy4 + dy1);
                                        cairo_line_to(cr, c->x + dx3 + dx0,        c->y + dy3 + dy0);
                                        cairo_line_to(cr, c->x - dx3 + dx4 - dx1,  c->y - dy3 + dy4 - dy1);
-
-                                       cairo_move_to(cr, c->x - dx3,        c->y - dy3);
-                                       cairo_line_to(cr, c->x + dx3 - dx0,  c->y + dy3 - dy0);
                                        cairo_stroke(cr);
 
                                        cairo_set_source_rgb(cr, 0.0, 0.6, 0.0);
                                        cairo_set_line_width(cr, 2.5);
-                                       cairo_move_to(cr, c->x + dx3 - dx0,  c->y + dy3 - dy0);
+                                       cairo_move_to(cr, c->x - dx3,        c->y - dy3);
+                                       cairo_line_to(cr, c->x + dx3 - dx0,  c->y + dy3 - dy0);
                                        cairo_line_to(cr, pc->x, pc->y);
                                        cairo_stroke(cr);
                                        break;