File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020#ifndef AGG_IMAGE_FILTERS_INCLUDED
2121#define AGG_IMAGE_FILTERS_INCLUDED
2222
23- #define MPL_FIX_IMAGE_FILTER_LUT_BUGS
24-
2523#include " agg_array.h"
2624#include " agg_math.h"
2725
@@ -55,7 +53,7 @@ namespace agg
5553 double r = filter.radius ();
5654 realloc_lut (r);
5755 unsigned i;
58- #ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
56+ #ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
5957 unsigned pivot = diameter () << (image_subpixel_shift - 1 );
6058 for (i = 0 ; i < pivot; i++)
6159 {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ namespace agg
8888 }
8989 }
9090
91- #ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
91+ #ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
9292 unsigned pivot = m_diameter << (image_subpixel_shift - 1 );
9393
9494 for (i = 0 ; i < pivot; i++)
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ project(
3131 ],
3232)
3333
34+ # Enable bug fixes in Agg
35+ add_project_arguments (' -DMPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS' , language : ' cpp' )
36+
3437cc = meson .get_compiler(' c' )
3538cpp = meson .get_compiler(' cpp' )
3639
You can’t perform that action at this time.
0 commit comments