* src/bdf/bdflib.c (_bdf_parse_start): Disallow 0 bpp.

2.6.5
Alexei Podtelezhnikov 10 years ago
parent 4308b7b1af
commit 41bfbadcd3
  1. 4
      ChangeLog
  2. 4
      src/bdf/bdflib.c

@ -1,3 +1,7 @@
2015-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/bdf/bdflib.c (_bdf_parse_start): Disallow 0 bpp.
2015-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/bdf/bdflib.c (_bdf_parse_start): Simplify bpp parsing.

@ -2356,8 +2356,10 @@
p->font->bpp = 8;
else if ( bpp > 2 )
p->font->bpp = 4;
else if ( bpp > 1 )
p->font->bpp = 2;
else
p->font->bpp = bpp;
p->font->bpp = 1;
if ( p->font->bpp != bpp )
FT_TRACE2(( "_bdf_parse_start: " ACMSG11, p->font->bpp ));

Loading…
Cancel
Save