[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-270-g333c7bc)
The branch, master has been updated
via 333c7bc53e05e1c024486b8191b8f7031f0f506e (commit)
from 1aab94354f053887db67aa5702abc595795dfe82 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
gschem/src/o_path.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 333c7bc53e05e1c024486b8191b8f7031f0f506e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Nov 1 00:42:24 2008 +0000
gschem: Check for visibility / toplevel->DONT_REDRAW in o_path_draw()
These test were mistakenly removed in
commit 2d2d9d90d07080ed18a899dcccc34e99c83a7402
:100644 100644 73569ca... 1a8a329... M gschem/src/o_path.c
=========
Changes
=========
commit 333c7bc53e05e1c024486b8191b8f7031f0f506e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Nov 1 00:42:24 2008 +0000
gschem: Check for visibility / toplevel->DONT_REDRAW in o_path_draw()
These test were mistakenly removed in
commit 2d2d9d90d07080ed18a899dcccc34e99c83a7402
diff --git a/gschem/src/o_path.c b/gschem/src/o_path.c
index 73569ca..1a8a329 100644
--- a/gschem/src/o_path.c
+++ b/gschem/src/o_path.c
@@ -420,6 +420,7 @@ void o_path_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
{
TOPLEVEL *toplevel = w_current->toplevel;
PATH *path = o_current->path;
+ int wleft, wtop, wright, wbottom;
int line_width, length, space;
int fill_width, angle1, pitch1, angle2, pitch2;
DRAW_FUNC draw_func = NULL;
@@ -432,6 +433,16 @@ void o_path_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current)
return;
}
+ /* Get read to check for visibility of this line by using it's
+ * bounding box */
+ world_get_single_object_bounds(toplevel, o_current,
+ &wleft, &wtop, &wright, &wbottom);
+
+ if ( (toplevel->DONT_REDRAW == 1) ||
+ (!visible(toplevel, wleft, wtop, wright, wbottom)) ) {
+ return;
+ }
+
if (toplevel->override_color != -1 )
color = x_get_color(toplevel->override_color);
else
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs