Remove printfs
This commit is contained in:
parent
1e0918c41c
commit
e122ecf1e5
@ -139,6 +139,7 @@ RasterFP_DrawLine( RasterFP* aRasterFP, RasterFP_Point aP0, RasterFP_Point aP1 )
|
||||
}
|
||||
if ( recursive )
|
||||
{
|
||||
printf("Recursive shit\n");
|
||||
aP0.m_x += aRasterFP->m_origin_x;
|
||||
aP0.m_y += aRasterFP->m_origin_y;
|
||||
aP1.m_x += aRasterFP->m_origin_x;
|
||||
@ -420,36 +421,36 @@ dense_render_glyph( RasterFP* aRasterFP, const FT_Bitmap* target )
|
||||
// }
|
||||
|
||||
// printf("pulu %d\n", aRasterFP->m_h);
|
||||
printf( "Outputting bitmap\n" );
|
||||
for ( int i = 0; i < aRasterFP->m_h; i++ )
|
||||
{
|
||||
printf( "\n" );
|
||||
for ( int j = 0; j < aRasterFP->m_w; j++ )
|
||||
{
|
||||
float strength = *( source + ( i * aRasterFP->m_w + j ) );
|
||||
if ( strength > 0.90 )
|
||||
{
|
||||
printf( "@|" );
|
||||
}
|
||||
else if ( strength > 0.70 )
|
||||
{
|
||||
printf( "#|" );
|
||||
}
|
||||
else if ( strength > 0.45 )
|
||||
{
|
||||
printf( "+|" );
|
||||
}
|
||||
else if ( strength > 0.20 )
|
||||
{
|
||||
printf( "*|" );
|
||||
}
|
||||
else
|
||||
{
|
||||
printf( ".|" );
|
||||
}
|
||||
}
|
||||
}
|
||||
printf( "\n" );
|
||||
//printf( "Outputting bitmap\n" );
|
||||
// for ( int i = 0; i < aRasterFP->m_h; i++ )
|
||||
// {
|
||||
// printf( "\n" );
|
||||
// for ( int j = 0; j < aRasterFP->m_w; j++ )
|
||||
// {
|
||||
// float strength = *( source + ( i * aRasterFP->m_w + j ) );
|
||||
// if ( strength > 0.90 )
|
||||
// {
|
||||
// printf( "@|" );
|
||||
// }
|
||||
// else if ( strength > 0.70 )
|
||||
// {
|
||||
// printf( "#|" );
|
||||
// }
|
||||
// else if ( strength > 0.45 )
|
||||
// {
|
||||
// printf( "+|" );
|
||||
// }
|
||||
// else if ( strength > 0.20 )
|
||||
// {
|
||||
// printf( "*|" );
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// printf( ".|" );
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// printf( "\n" );
|
||||
|
||||
unsigned char* dest = target->buffer;
|
||||
unsigned char* dest_end = target->buffer + aRasterFP->m_w * aRasterFP->m_h;
|
||||
|
@ -876,12 +876,12 @@ typedef ptrdiff_t FT_PtrDist;
|
||||
TCoord fx1, fy1, fx2, fy2;
|
||||
TCoord ex1, ey1, ex2, ey2;
|
||||
|
||||
printf( "Line from {%li, %li} to {%li, %li}, with a maximum dimensions of %d by %d\n", ras.x, ras.y, to_x,
|
||||
to_y, ras.max_ex, ras.max_ey );
|
||||
// printf( "Line from {%li, %li} to {%li, %li}, with a maximum dimensions of %d by %d\n", ras.x, ras.y, to_x,
|
||||
// to_y, ras.max_ex, ras.max_ey );
|
||||
ey1 = TRUNC( ras.y );
|
||||
ey2 = TRUNC( to_y );
|
||||
|
||||
printf("Truncation reduced prev y from %ld to %d\n", ras.y, ey1);
|
||||
// printf("Truncation reduced prev y from %ld to %d\n", ras.y, ey1);
|
||||
|
||||
/* perform vertical clipping */
|
||||
if ( ( ey1 >= ras.max_ey && ey2 >= ras.max_ey ) ||
|
||||
|
@ -493,8 +493,6 @@
|
||||
/* translate outline to render it into the bitmap */
|
||||
if ( x_shift || y_shift )
|
||||
FT_Outline_Translate( outline, x_shift, y_shift );
|
||||
printf( "x_shift is %li\n", x_shift );
|
||||
printf( "y_shift is %li\n", y_shift );
|
||||
|
||||
if ( mode == FT_RENDER_MODE_NORMAL ||
|
||||
mode == FT_RENDER_MODE_LIGHT )
|
||||
|
Loading…
Reference in New Issue
Block a user