From 350a1c1a9eeb127e633ebc875addbee0c61f0ed5 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 3 Nov 2000 07:34:29 +0000 Subject: [PATCH] Remove redundant code; fix computation of `last'. --- src/base/ftbbox.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/base/ftbbox.c b/src/base/ftbbox.c index f53432a88..4e84235ac 100644 --- a/src/base/ftbbox.c +++ b/src/base/ftbbox.c @@ -45,7 +45,8 @@ /* */ /* This function is used as a `move_to' and `line_to' emitter during */ /* FT_Outline_Decompose(). It simply records the destination point */ - /* in `user->last'. */ + /* in `user->last'; no further computations are necessary since we */ + /* the cbox as the starting bbox which must be refined. */ /* */ /* */ /* to :: A pointer to the destination vector. */ @@ -99,13 +100,10 @@ FT_Pos* min, FT_Pos* max ) { - if( y1 == y3 ) + if ( y1 == y3 ) { if ( y2 == y1 ) /* Flat arc */ - { - y3 = y1; goto Suite; - } } else if ( y1 < y3 ) { @@ -179,6 +177,8 @@ &user->bbox.yMin, &user->bbox.yMax ); + user->last = *to; + return 0; } @@ -232,10 +232,7 @@ if ( y1 == y4 ) { if ( y1 == y2 && y1 == y3 ) /* Flat */ - { - y4 = y1; goto Test; - } } else if ( y1 < y4 ) { @@ -330,6 +327,8 @@ &user->bbox.yMin, &user->bbox.yMax ); + user->last = *to; + return 0; }