Revert "check if FT_PIXEL_MODE_BGRA is defined (freetype < 2.5.0) (#3797)"
This reverts commit6eafffaf57
. Revert "fix memory leak (#3775)" This reverts commit995ab49f23
. (6eafffaf57 (commitcomment-25894906)
)
This commit is contained in:
parent
6eafffaf57
commit
6a6891252c
3 changed files with 8 additions and 14 deletions
|
@ -28,7 +28,6 @@
|
||||||
#include <mapnik/coord.hpp>
|
#include <mapnik/coord.hpp>
|
||||||
#include <mapnik/vertex.hpp>
|
#include <mapnik/vertex.hpp>
|
||||||
#include <mapnik/geometry_types.hpp>
|
#include <mapnik/geometry_types.hpp>
|
||||||
#include <mapnik/geometry.hpp>
|
|
||||||
// stl
|
// stl
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -178,10 +178,6 @@ void agg_text_renderer<T>::render(glyph_positions const& pos)
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
FT_BitmapGlyph bit = reinterpret_cast<FT_BitmapGlyph>(g);
|
FT_BitmapGlyph bit = reinterpret_cast<FT_BitmapGlyph>(g);
|
||||||
#ifdef FT_PIXEL_MODE_BGRA
|
|
||||||
if (bit->bitmap.pixel_mode != FT_PIXEL_MODE_BGRA)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
composite_bitmap(pixmap_,
|
composite_bitmap(pixmap_,
|
||||||
&bit->bitmap,
|
&bit->bitmap,
|
||||||
halo_fill,
|
halo_fill,
|
||||||
|
@ -191,7 +187,6 @@ void agg_text_renderer<T>::render(glyph_positions const& pos)
|
||||||
halo_comp_op_);
|
halo_comp_op_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
error = FT_Glyph_To_Bitmap(&g, FT_RENDER_MODE_NORMAL, 0, 1);
|
error = FT_Glyph_To_Bitmap(&g, FT_RENDER_MODE_NORMAL, 0, 1);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2749835d3265d95b951c2c90c099fac35e326f39
|
Subproject commit a2624810e3f8d187af2ec0995bcfba0ef61d00d9
|
Loading…
Reference in a new issue