summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2001-10-17 14:29:51 +0000
committerDavid Turner <david@freetype.org>2001-10-17 14:29:51 +0000
commitea5a981c7d000b11cf29dd7f1a9cf96defdff059 (patch)
tree628cf10f1a187a319914d64ad48e3a9c5bd9b984
parent034a19326bd49dfa9883561c68b24417cbd84524 (diff)
minimal optimisation submitted by Graham AsherVER-2-0-5
-rw-r--r--src/raster/ftraster.c31
1 files changed, 8 insertions, 23 deletions
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 3625d22f..33d42b6b 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;