[raster] Miscellaneous clean-ups.
* src/raster/ftraster.c (New_Profile): Use NULL. (End_Profile): Optimize variables. (Convert_Glyph): Do not initialize `cProfile` yet. (Render_Single_Pass): Tracing.
This commit is contained in:
parent
322e580bd0
commit
14bcb2867a
|
@ -634,8 +634,8 @@
|
||||||
ras.cProfile->start = 0;
|
ras.cProfile->start = 0;
|
||||||
ras.cProfile->height = 0;
|
ras.cProfile->height = 0;
|
||||||
ras.cProfile->offset = ras.top;
|
ras.cProfile->offset = ras.top;
|
||||||
ras.cProfile->link = (PProfile)0;
|
ras.cProfile->link = NULL;
|
||||||
ras.cProfile->next = (PProfile)0;
|
ras.cProfile->next = NULL;
|
||||||
ras.cProfile->flags = ras.dropOutControl;
|
ras.cProfile->flags = ras.dropOutControl;
|
||||||
|
|
||||||
switch ( aState )
|
switch ( aState )
|
||||||
|
@ -704,9 +704,6 @@
|
||||||
|
|
||||||
if ( h > 0 )
|
if ( h > 0 )
|
||||||
{
|
{
|
||||||
PProfile oldProfile;
|
|
||||||
|
|
||||||
|
|
||||||
FT_TRACE7(( " 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 ));
|
(void *)ras.cProfile, ras.cProfile->start, h ));
|
||||||
|
|
||||||
|
@ -719,15 +716,14 @@
|
||||||
ras.cProfile->flags |= Overshoot_Bottom;
|
ras.cProfile->flags |= Overshoot_Bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
oldProfile = ras.cProfile;
|
ras.cProfile->next = (PProfile)ras.top;
|
||||||
ras.cProfile = (PProfile)ras.top;
|
ras.cProfile = (PProfile)ras.top;
|
||||||
|
|
||||||
ras.top += AlignProfileSize;
|
ras.top += AlignProfileSize;
|
||||||
|
|
||||||
ras.cProfile->height = 0;
|
|
||||||
ras.cProfile->offset = ras.top;
|
ras.cProfile->offset = ras.top;
|
||||||
|
ras.cProfile->height = 0;
|
||||||
|
|
||||||
oldProfile->next = ras.cProfile;
|
|
||||||
ras.num_Profs++;
|
ras.num_Profs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1980,9 +1976,6 @@
|
||||||
ras.maxBuff = ras.sizeBuff - AlignProfileSize;
|
ras.maxBuff = ras.sizeBuff - AlignProfileSize;
|
||||||
|
|
||||||
ras.numTurns = 0;
|
ras.numTurns = 0;
|
||||||
|
|
||||||
ras.cProfile = (PProfile)ras.top;
|
|
||||||
ras.cProfile->offset = ras.top;
|
|
||||||
ras.num_Profs = 0;
|
ras.num_Profs = 0;
|
||||||
|
|
||||||
last = -1;
|
last = -1;
|
||||||
|
@ -3048,8 +3041,9 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FT_TRACE6(( "band [%d..%d]: %td bytes remaining\n",
|
FT_TRACE6(( "band [%d..%d]: %hd profiles; %td bytes remaining\n",
|
||||||
y_min, y_max, (char*)ras.maxBuff - (char*)ras.top ));
|
y_min, y_max, ras.num_Profs,
|
||||||
|
(char*)ras.maxBuff - (char*)ras.top ));
|
||||||
|
|
||||||
if ( ras.fProfile )
|
if ( ras.fProfile )
|
||||||
if ( Draw_Sweep( RAS_VAR ) )
|
if ( Draw_Sweep( RAS_VAR ) )
|
||||||
|
|
Loading…
Reference in New Issue