[PATCH] modified: pcb/src/draw.c

Bert Timmerman bert.timmerman at xs4all.nl
Fri Jul 20 10:55:27 EDT 2007


This patch is to allow for locked elements to be recognised on an instant.

If an element is locked an "L" is placed on top of the "diamond" marker.
---
 pcb/src/draw.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/pcb/src/draw.c b/pcb/src/draw.c
index 808d224..280cbe6 100644
--- a/pcb/src/draw.c
+++ b/pcb/src/draw.c
@@ -607,6 +607,14 @@ DrawEMark (ElementTypePtr e, LocationType X, LocationType Y,
   gui->draw_line (Output.fgGC, X + mark_size, Y, X, Y - mark_size);
   gui->draw_line (Output.fgGC, X - mark_size, Y, X, Y + mark_size);
   gui->draw_line (Output.fgGC, X + mark_size, Y, X, Y + mark_size);
+  /*
+   * If an element is locked, place a "L" on top of the "diamond".
+   */
+  if (TEST_FLAG (LOCKFLAG, e))
+   {
+     gui->draw_line (Output.fgGC, X, Y, X + 2 * mark_size, Y);
+     gui->draw_line (Output.fgGC, X, Y, X, Y - 4* mark_size);
+   }
 }
 
 static int
-- 
1.5.0.6


--=-03gH2RqdRs+oMx1HVuTG--



More information about the geda-user mailing list