File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 20
20
#ifndef AGG_IMAGE_FILTERS_INCLUDED
21
21
#define AGG_IMAGE_FILTERS_INCLUDED
22
22
23
- #define MPL_FIX_IMAGE_FILTER_LUT_BUGS
24
-
25
23
#include " agg_array.h"
26
24
#include " agg_math.h"
27
25
@@ -55,7 +53,7 @@ namespace agg
55
53
double r = filter.radius ();
56
54
realloc_lut (r);
57
55
unsigned i;
58
- #ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
56
+ #ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
59
57
unsigned pivot = diameter () << (image_subpixel_shift - 1 );
60
58
for (i = 0 ; i < pivot; i++)
61
59
{
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ namespace agg
88
88
}
89
89
}
90
90
91
- #ifndef MPL_FIX_IMAGE_FILTER_LUT_BUGS
91
+ #ifndef MPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS
92
92
unsigned pivot = m_diameter << (image_subpixel_shift - 1 );
93
93
94
94
for (i = 0 ; i < pivot; i++)
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ project(
31
31
],
32
32
)
33
33
34
+ # Enable bug fixes in Agg
35
+ add_project_arguments (' -DMPL_FIX_AGG_IMAGE_FILTER_LUT_BUGS' , language : ' cpp' )
36
+
34
37
cc = meson .get_compiler(' c' )
35
38
cpp = meson .get_compiler(' cpp' )
36
39
You can’t perform that action at this time.
0 commit comments