From 84cd2e98975f8406b1db20e1088f5969419b0fd8 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 9 Oct 2023 22:11:41 -0400 Subject: [PATCH] * src/raster/ftraster.c: Tracing updates. --- src/raster/ftraster.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index 192ca0701..0b89396be 100644 --- a/src/raster/ftraster.c +++ b/src/raster/ftraster.c @@ -645,13 +645,13 @@ if ( overshoot ) ras.cProfile->flags |= Overshoot_Bottom; - FT_TRACE6(( " new ascending profile = %p\n", (void *)ras.cProfile )); + FT_TRACE7(( " new ascending profile = %p\n", (void *)ras.cProfile )); break; case Descending_State: if ( overshoot ) ras.cProfile->flags |= Overshoot_Top; - FT_TRACE6(( " new descending profile = %p\n", (void *)ras.cProfile )); + FT_TRACE7(( " new descending profile = %p\n", (void *)ras.cProfile )); break; default: @@ -707,7 +707,7 @@ PProfile oldProfile; - FT_TRACE6(( " ending profile %p, start = %ld, height = %ld\n", + FT_TRACE7(( " ending profile %p, start = %ld, height = %ld\n", (void *)ras.cProfile, ras.cProfile->start, h )); ras.cProfile->height = h; @@ -3038,6 +3038,9 @@ if ( y_min == y_max ) return ras.error; /* still Raster_Overflow */ + FT_TRACE6(( "band [%d..%d]: to be bisected\n", + y_min, y_max )); + y_mid = ( y_min + y_max ) >> 1; band_stack[band_top++] = y_min; @@ -3045,6 +3048,9 @@ } else { + FT_TRACE6(( "band [%d..%d]: %td bytes remaining\n", + y_min, y_max, (char*)ras.maxBuff - (char*)ras.top )); + if ( ras.fProfile ) if ( Draw_Sweep( RAS_VAR ) ) return ras.error; @@ -3095,7 +3101,7 @@ } /* Vertical Sweep */ - FT_TRACE7(( "Vertical pass (ftraster)\n" )); + FT_TRACE6(( "Vertical pass (ftraster)\n" )); ras.Proc_Sweep_Init = Vertical_Sweep_Init; ras.Proc_Sweep_Span = Vertical_Sweep_Span; @@ -3115,7 +3121,7 @@ /* Horizontal Sweep */ if ( !( ras.outline.flags & FT_OUTLINE_SINGLE_PASS ) ) { - FT_TRACE7(( "Horizontal pass (ftraster)\n" )); + FT_TRACE6(( "Horizontal pass (ftraster)\n" )); ras.Proc_Sweep_Init = Horizontal_Sweep_Init; ras.Proc_Sweep_Span = Horizontal_Sweep_Span;