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

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-108-g6737adc)



The branch, master has been updated
       via  6737adc47d1a2083ac432582b6b64d6aaf1b9632 (commit)
      from  212b0cf870e05a105fc5a6c134b7803cf6c63c28 (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/gschem_cairo.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)


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

commit 6737adc47d1a2083ac432582b6b64d6aaf1b9632
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Fri Jan 2 00:30:06 2009 +0000

    gschem: Only add extra pixel when drawing for non-capped lines.
    
    Adding it for square capped lines resulted in visible overshoot of one
    pixel when drawing nets with square caps, so was perhaps a mistake.

:100644 100644 c153fd7... 53b18ca... M	gschem/src/gschem_cairo.c

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

commit 6737adc47d1a2083ac432582b6b64d6aaf1b9632
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Fri Jan 2 00:30:06 2009 +0000

    gschem: Only add extra pixel when drawing for non-capped lines.
    
    Adding it for square capped lines resulted in visible overshoot of one
    pixel when drawing nets with square caps, so was perhaps a mistake.

diff --git a/gschem/src/gschem_cairo.c b/gschem/src/gschem_cairo.c
index c153fd7..53b18ca 100644
--- a/gschem/src/gschem_cairo.c
+++ b/gschem/src/gschem_cairo.c
@@ -60,7 +60,13 @@ void gschem_cairo_line (cairo_t *cr, int line_end, int width,
   switch (line_end) {
     case END_NONE:
       /* Line terminates at the passed coordinate */
-      /* Do nothing */
+
+      /* Add an extra pixel to give an inclusive span */
+      if (horizontal) {
+        if (x1 > x2) x1 += 1; else x2 += 1;
+      } else if (vertical) {
+        if (y1 > y2) y1 += 1; else y2 += 1;
+      }
       break;
 
     case END_SQUARE:
@@ -74,13 +80,6 @@ void gschem_cairo_line (cairo_t *cr, int line_end, int width,
       break;
   }
 
-  /* Add an extra pixel to give an inclusive span */
-  if (horizontal) {
-    if (x1 > x2) x1 += 1; else x2 += 1;
-  } else if (vertical) {
-    if (y1 > y2) y1 += 1; else y2 += 1;
-  }
-
   cairo_move_to (cr, x1 + xoffset, y1 + yoffset);
   cairo_line_to (cr, x2 + xoffset, y2 + yoffset);
 }




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