[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-98-g6e5fa46)
The branch, master has been updated
via 6e5fa46cc04db09e0fa0fee54985fa98413c339e (commit)
from 9aa23d8ec9319639b505b30d8a7754af9311beca (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_grips.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 6e5fa46cc04db09e0fa0fee54985fa98413c339e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
gschem: Make sure we invalidate the rubberbanded object before cancelling
This showed up as a rendering artefact left behind after grip-resizing
objects to an invalid size, then letting go of the grip. The grip
operation is cancelled, and the original object re-drawn - but it is
possible that the rubber-banded view of the object just before
cancelling the action covers an area of the screen not touched by the
original object.
:100644 100644 8c79b43... f688981... M gschem/src/o_grips.c
=========
Changes
=========
commit 6e5fa46cc04db09e0fa0fee54985fa98413c339e
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>
gschem: Make sure we invalidate the rubberbanded object before cancelling
This showed up as a rendering artefact left behind after grip-resizing
objects to an invalid size, then letting go of the grip. The grip
operation is cancelled, and the original object re-drawn - but it is
possible that the rubber-banded view of the object just before
cancelling the action covers an area of the screen not touched by the
original object.
diff --git a/gschem/src/o_grips.c b/gschem/src/o_grips.c
index 8c79b43..f688981 100644
--- a/gschem/src/o_grips.c
+++ b/gschem/src/o_grips.c
@@ -1086,6 +1086,7 @@ static void o_grips_end_box(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current,
* this ends the box drawing behavior
* we want this? hack */
if ((box_width == 0) || (box_height == 0)) {
+ o_box_invalidate_rubber (w_current);
o_invalidate (w_current, o_current);
return;
}
@@ -1132,6 +1133,7 @@ static void o_grips_end_picture(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current,
* this ends the picture drawing behavior
* we want this? hack */
if ((GET_PICTURE_WIDTH(w_current) == 0) || (GET_PICTURE_HEIGHT(w_current) == 0)) {
+ o_picture_invalidate_rubber (w_current);
o_invalidate (w_current, o_current);
return;
}
@@ -1171,6 +1173,7 @@ static void o_grips_end_circle(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current,
* this ends the circle drawing behavior
* we want this? hack */
if (w_current->distance == 0) {
+ o_circle_invalidate_rubber (w_current);
o_invalidate (w_current, o_current);
return;
}
@@ -1208,6 +1211,7 @@ static void o_grips_end_line(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current,
* we want this? hack */
if ((w_current->first_wx == w_current->second_wx) &&
(w_current->first_wy == w_current->second_wy)) {
+ o_box_invalidate_rubber (w_current);
o_invalidate (w_current, o_current);
return;
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs