mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-20 04:10:01 +01:00
* src/bdf/bdfdriver.c (BDF_Glyph_Load): Use bdf->bdffont->bpp directly.
Fixes issue #1362.
This commit is contained in:
parent
41eab7e66d
commit
7955c9b86a
1 changed files with 1 additions and 2 deletions
|
|
@ -800,7 +800,6 @@ THE SOFTWARE.
|
|||
FT_Error error = FT_Err_Ok;
|
||||
FT_Bitmap* bitmap = &slot->bitmap;
|
||||
bdf_glyph_t glyph;
|
||||
int bpp = bdf->bdffont->bpp;
|
||||
|
||||
FT_UNUSED( load_flags );
|
||||
|
||||
|
|
@ -839,7 +838,7 @@ THE SOFTWARE.
|
|||
/* we can simply point to it */
|
||||
ft_glyphslot_set_bitmap( slot, glyph.bitmap );
|
||||
|
||||
switch ( bpp )
|
||||
switch ( bdf->bdffont->bpp )
|
||||
{
|
||||
case 1:
|
||||
bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue