minimal optimisation submitted by Graham Asher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 3625d22..33d42b6 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -1956,28 +1956,6 @@
/*************************************************************************/
/* */
- /* Update */
- /* */
- /* Update all X offsets of a drawing list. */
- /* */
- static void
- Update( PProfile first )
- {
- PProfile current = first;
-
-
- while ( current )
- {
- current->X = *current->offset;
- current->offset += current->flow;
- current->height--;
- current = current->link;
- }
- }
-
-
- /*************************************************************************/
- /* */
/* Sort */
/* */
/* Sorts a trace list. In 95%, the list is already sorted. We need */
@@ -1991,7 +1969,14 @@
/* First, set the new X coordinate of each profile */
- Update( *list );
+ current = *list;
+ while ( current )
+ {
+ current->X = *current->offset;
+ current->offset += current->flow;
+ current->height--;
+ current = current->link;
+ }
/* Then sort them */
old = list;