|
|
|
@ -62,7 +62,7 @@ |
|
|
|
|
|
|
|
|
|
if ( pitch < 0 ) |
|
|
|
|
pitch = -pitch; |
|
|
|
|
size = (FT_ULong)( pitch * source->rows ); |
|
|
|
|
size = (FT_ULong)pitch * source->rows; |
|
|
|
|
|
|
|
|
|
if ( target->buffer ) |
|
|
|
|
{ |
|
|
|
@ -72,7 +72,7 @@ |
|
|
|
|
|
|
|
|
|
if ( target_pitch < 0 ) |
|
|
|
|
target_pitch = -target_pitch; |
|
|
|
|
target_size = (FT_ULong)( target_pitch * target->rows ); |
|
|
|
|
target_size = (FT_ULong)target_pitch * target->rows; |
|
|
|
|
|
|
|
|
|
if ( target_size != size ) |
|
|
|
|
(void)FT_QREALLOC( target->buffer, target_size, size ); |
|
|
|
@ -109,7 +109,7 @@ |
|
|
|
|
int pitch; |
|
|
|
|
int new_pitch; |
|
|
|
|
FT_UInt bpp; |
|
|
|
|
FT_Int i, width, height; |
|
|
|
|
FT_UInt i, width, height; |
|
|
|
|
unsigned char* buffer = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -147,17 +147,17 @@ |
|
|
|
|
if ( ypixels == 0 && new_pitch <= pitch ) |
|
|
|
|
{ |
|
|
|
|
/* zero the padding */ |
|
|
|
|
FT_Int bit_width = pitch * 8; |
|
|
|
|
FT_Int bit_last = ( width + xpixels ) * bpp; |
|
|
|
|
FT_UInt bit_width = pitch * 8; |
|
|
|
|
FT_UInt bit_last = ( width + xpixels ) * bpp; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( bit_last < bit_width ) |
|
|
|
|
{ |
|
|
|
|
FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); |
|
|
|
|
FT_Byte* end = bitmap->buffer + pitch; |
|
|
|
|
FT_Int shift = bit_last & 7; |
|
|
|
|
FT_UInt shift = bit_last & 7; |
|
|
|
|
FT_UInt mask = 0xFF00U >> shift; |
|
|
|
|
FT_Int count = height; |
|
|
|
|
FT_UInt count = height; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( ; count > 0; count--, line += pitch, end += pitch ) |
|
|
|
@ -186,7 +186,7 @@ |
|
|
|
|
/* thus take care of the flow direction */ |
|
|
|
|
if ( bitmap->pitch > 0 ) |
|
|
|
|
{ |
|
|
|
|
FT_Int len = ( width * bpp + 7 ) >> 3; |
|
|
|
|
FT_UInt len = ( width * bpp + 7 ) >> 3; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( i = 0; i < bitmap->rows; i++ ) |
|
|
|
@ -195,7 +195,7 @@ |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
FT_Int len = ( width * bpp + 7 ) >> 3; |
|
|
|
|
FT_UInt len = ( width * bpp + 7 ) >> 3; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( i = 0; i < bitmap->rows; i++ ) |
|
|
|
@ -226,7 +226,8 @@ |
|
|
|
|
{ |
|
|
|
|
FT_Error error; |
|
|
|
|
unsigned char* p; |
|
|
|
|
FT_Int i, x, y, pitch; |
|
|
|
|
FT_Int i, x, pitch; |
|
|
|
|
FT_UInt y; |
|
|
|
|
FT_Int xstr, ystr; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -451,8 +452,8 @@ |
|
|
|
|
case FT_PIXEL_MODE_LCD_V: |
|
|
|
|
case FT_PIXEL_MODE_BGRA: |
|
|
|
|
{ |
|
|
|
|
FT_Int pad, old_target_pitch; |
|
|
|
|
FT_Long old_size; |
|
|
|
|
FT_Int pad, old_target_pitch; |
|
|
|
|
FT_ULong old_size; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
old_target_pitch = target->pitch; |
|
|
|
|