From ea5a981c7d000b11cf29dd7f1a9cf96defdff059 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 17 Oct 2001 14:29:51 +0000 Subject: [PATCH] minimal optimisation submitted by Graham Asher --- src/raster/ftraster.c | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index 3625d22f5..33d42b6bc 100644 --- a/src/raster/ftraster.c +++ b/src/raster/ftraster.c @@ -1954,28 +1954,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 */ @@ -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;