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

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-103-g0af3c1c)



The branch, master has been updated
       via  0af3c1c6285de7431075131015234e6bda42f02d (commit)
      from  dba5ef64f4425d61bf43eef5ae69d863b740edbf (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_box.c    |    4 ++--
 gschem/src/o_circle.c |    5 ++---
 gschem/src/o_path.c   |    4 ++--
 3 files changed, 6 insertions(+), 7 deletions(-)


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

commit 0af3c1c6285de7431075131015234e6bda42f02d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Thu Jan 1 14:51:40 2009 +0000

    gschem: Group fill hatching into a single cairo path before stroking
    
    This ought to improve performance. Since the hatch lines are drawn
    in parallel, the path doesn't self-intersect, and we can gain a speed
    increase by sending the whole operation in one go. (Self-intersection,
    e.g. in the case of a grid would slow cairo down computing the mask
    to render with).

:100644 100644 68f3881... 831caed... M	gschem/src/o_box.c
:100644 100644 330c9a8... 80f519f... M	gschem/src/o_circle.c
:100644 100644 03ace7a... 88ad217... M	gschem/src/o_path.c

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

commit 0af3c1c6285de7431075131015234e6bda42f02d
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Thu Jan 1 14:51:40 2009 +0000

    gschem: Group fill hatching into a single cairo path before stroking
    
    This ought to improve performance. Since the hatch lines are drawn
    in parallel, the path doesn't self-intersect, and we can gain a speed
    increase by sending the whole operation in one go. (Self-intersection,
    e.g. in the case of a grid would slow cairo down computing the mask
    to render with).

diff --git a/gschem/src/o_box.c b/gschem/src/o_box.c
index 68f3881..831caed 100644
--- a/gschem/src/o_box.c
+++ b/gschem/src/o_box.c
@@ -331,9 +331,9 @@ void o_box_fill_hatch (GdkDrawable *w, GdkGC *gc, COLOR *color,
     WORLDtoSCREEN (w_current->toplevel, line->x[0], line->y[0], &x1, &y1);
     WORLDtoSCREEN (w_current->toplevel, line->x[1], line->y[1], &x2, &y2);
     gschem_cairo_line (w_current->cr, END_NONE, fill_width, x1, y1, x2, y2);
-    gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
-                                        fill_width, -1, -1);
   }
+  gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
+                                      fill_width, -1, -1);
 
   g_array_free (lines, TRUE);
 }
diff --git a/gschem/src/o_circle.c b/gschem/src/o_circle.c
index 330c9a8..80f519f 100644
--- a/gschem/src/o_circle.c
+++ b/gschem/src/o_circle.c
@@ -324,10 +324,9 @@ void o_circle_fill_hatch (GdkDrawable *w, GdkGC *gc, COLOR *color,
     WORLDtoSCREEN (w_current->toplevel, line->x[0], line->y[0], &x1, &y1);
     WORLDtoSCREEN (w_current->toplevel, line->x[1], line->y[1], &x2, &y2);
     gschem_cairo_line (w_current->cr, END_NONE, fill_width, x1, y1, x2, y2);
-    gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
-                                        fill_width, -1, -1);
-
   }
+  gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
+                                      fill_width, -1, -1);
 
   g_array_free (lines, TRUE);
 }
diff --git a/gschem/src/o_path.c b/gschem/src/o_path.c
index 03ace7a..88ad217 100644
--- a/gschem/src/o_path.c
+++ b/gschem/src/o_path.c
@@ -233,9 +233,9 @@ static void o_path_fill_hatch (GdkDrawable *w, GdkGC *gc, COLOR *color,
     WORLDtoSCREEN (w_current->toplevel, line->x[0], line->y[0], &x1, &y1);
     WORLDtoSCREEN (w_current->toplevel, line->x[1], line->y[1], &x2, &y2);
     gschem_cairo_line (w_current->cr, END_NONE, fill_width, x1, y1, x2, y2);
-    gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
-                                        fill_width, -1, -1);
   }
+  gschem_cairo_stroke (w_current->cr, TYPE_SOLID, END_NONE,
+                                      fill_width, -1, -1);
 
   g_array_free (lines, TRUE);
 }




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