From 316ca11e3a6ba69fe979ebd1c41978da0a66b60d Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Sat, 29 Aug 2020 12:59:27 +0200 Subject: [PATCH] removed (draw|filled).*(.*BEGIN, .*) everywhere as it is not needed (just flush graphics with END is enough) --- src/actions.c | 5 ----- src/check.c | 1 - src/draw.c | 10 ---------- src/hilight.c | 9 --------- src/move.c | 11 ----------- src/scheduler.c | 3 --- src/select.c | 13 ------------- 7 files changed, 52 deletions(-) diff --git a/src/actions.c b/src/actions.c index e16d8a36..2dc51239 100644 --- a/src/actions.c +++ b/src/actions.c @@ -971,9 +971,6 @@ int place_symbol(int pos, const char *symbol_name, double x, double y, int rot, /* hilight new element 24122002 */ if(draw_sym & 4 ) { - drawtempline(gc[SELLAYER], BEGIN, 0.0, 0.0, 0.0, 0.0); - drawtemprect(gc[SELLAYER], BEGIN, 0.0, 0.0, 0.0, 0.0); - drawtemparc(gc[SELLAYER], BEGIN, 0.0, 0.0, 0.0, 0.0, 0.0); select_element(n, SELECTED,0, 0); ui_state |= SELECTION; drawtemparc(gc[SELLAYER], END, 0.0, 0.0, 0.0, 0.0, 0.0); @@ -2264,8 +2261,6 @@ void place_text(int draw_text, double mx, double my) cairo_restore(save_ctx); } #endif - drawtempline(gc[SELLAYER], BEGIN, 0.0, 0.0, 0.0, 0.0); - drawtemprect(gc[SELLAYER], BEGIN, 0.0, 0.0, 0.0, 0.0); select_text(lasttext, SELECTED, 0); drawtemprect(gc[SELLAYER], END, 0.0, 0.0, 0.0, 0.0); drawtempline(gc[SELLAYER], END, 0.0, 0.0, 0.0, 0.0); diff --git a/src/check.c b/src/check.c index ab10d13a..a0c75dcd 100644 --- a/src/check.c +++ b/src/check.c @@ -133,7 +133,6 @@ void update_conn_cues(int draw_cues, int dr_win) dbg(3, "update_conn_cues(): check3\n"); if(draw_cues) { save_draw = draw_window; draw_window = dr_win; - filledarc(WIRELAYER, BEGIN, 0.0, 0.0, 0.0, 0.0, 0.0); for(init_wire_iterator(x1, y1, x2, y2); ( wireptr = wire_iterator_next() ) ;) { i = wireptr->n; /* optimization when editing small areas (detailed zoom) of a huge schematic */ diff --git a/src/draw.c b/src/draw.c index 2b5a20b7..5ec4334c 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1491,10 +1491,6 @@ void draw(void) for(c=0;c