[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (234485511ff360c4ff95b87b2d0202c571af9675)



The branch, master has been updated
       via  234485511ff360c4ff95b87b2d0202c571af9675 (commit)
      from  46aabf7ca7bd0b7e59980ebfd2b2a9e848af62bf (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
=========

 src/hid/lesstif/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 234485511ff360c4ff95b87b2d0202c571af9675
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/lesstif: Fix dropped crosshair artaefacts when dragging objects.
    
    It seems that the idle_proc redraw code assumed the crosshair was
    switched off upon entry, proceeding to redraw everything (and
    obliterate the crosshair in the process). The final show_crosshair (1)
    call only has any effect if the crosshair was notionally off before
    hand.
    
    As a quick work-around (you could probably do it with less flicker with
    a little more logic), ensure the crosshair is turned off just prior to
    redrawing the screen - so it will switch back on correctly afterwards.

:100644 100644 cdaa7b0... 3da94a9... M	src/hid/lesstif/main.c

=========
 Changes
=========

commit 234485511ff360c4ff95b87b2d0202c571af9675
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/lesstif: Fix dropped crosshair artaefacts when dragging objects.
    
    It seems that the idle_proc redraw code assumed the crosshair was
    switched off upon entry, proceeding to redraw everything (and
    obliterate the crosshair in the process). The final show_crosshair (1)
    call only has any effect if the crosshair was notionally off before
    hand.
    
    As a quick work-around (you could probably do it with less flicker with
    a little more logic), ensure the crosshair is turned off just prior to
    redrawing the screen - so it will switch back on correctly afterwards.

diff --git a/src/hid/lesstif/main.c b/src/hid/lesstif/main.c
index cdaa7b0..3da94a9 100644
--- a/src/hid/lesstif/main.c
+++ b/src/hid/lesstif/main.c
@@ -2532,6 +2532,7 @@ idle_proc (XtPointer dummy)
       hid_expose_callback (&lesstif_hid, &region, 0);
       draw_grid ();
       lesstif_use_mask (0);
+      show_crosshair (0); /* To keep the drawn / not drawn info correct */
       XSetFunction (display, my_gc, GXcopy);
       XCopyArea (display, main_pixmap, window, my_gc, 0, 0, view_width,
 		 view_height, 0, 0);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs