Minor code improvement in `FT_Bitmap_Embolden'.
* src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>: Fix thinko.
This commit is contained in:
parent
8d05486eab
commit
d6061212c3
|
@ -1,3 +1,10 @@
|
|||
2014-11-19 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Minor code improvement in `FT_Bitmap_Embolden'.
|
||||
|
||||
* src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
|
||||
Fix thinko.
|
||||
|
||||
2014-11-19 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
|
||||
|
|
|
@ -254,17 +254,11 @@
|
|||
case FT_PIXEL_MODE_GRAY4:
|
||||
{
|
||||
FT_Bitmap tmp;
|
||||
FT_Int align;
|
||||
|
||||
|
||||
if ( bitmap->pixel_mode == FT_PIXEL_MODE_GRAY2 )
|
||||
align = ( bitmap->width + xstr + 3 ) / 4;
|
||||
else
|
||||
align = ( bitmap->width + xstr + 1 ) / 2;
|
||||
|
||||
/* convert to 8bpp */
|
||||
FT_Bitmap_New( &tmp );
|
||||
|
||||
error = FT_Bitmap_Convert( library, bitmap, &tmp, align );
|
||||
error = FT_Bitmap_Convert( library, bitmap, &tmp, 1 );
|
||||
if ( error )
|
||||
return error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue