Fix index/offset for 'decorative' matcher. Bug 15890.

It seems indices in _FcMatchers array are slightly mixed up, MATCH_DECORATIVE
should be 10, not 11.

And MATCH_RASTERIZER_INDEX should be 13, not 12, right?
This commit is contained in:
Evgeniy Stepanov 2008-05-24 16:09:17 -07:00 committed by Keith Packard
parent c6228a34b0
commit b808204023
1 changed files with 3 additions and 4 deletions

View File

@ -226,17 +226,16 @@ static FcMatcher _FcMatchers [] = {
#define MATCH_WIDTH_INDEX 10
{ FC_DECORATIVE_OBJECT, FcCompareBool, 11, 11 },
#define MATCH_DECORATIVE 11
#define MATCH_DECORATIVE_INDEX 12
#define MATCH_DECORATIVE 10
#define MATCH_DECORATIVE_INDEX 11
{ FC_ANTIALIAS_OBJECT, FcCompareBool, 12, 12 },
#define MATCH_ANTIALIAS 11
#define MATCH_ANTIALIAS_INDEX 12
{ FC_RASTERIZER_OBJECT, FcCompareString, 13, 13 },
#define MATCH_RASTERIZER 12
#define MATCH_RASTERIZER_INDEX 12
#define MATCH_RASTERIZER_INDEX 13
{ FC_OUTLINE_OBJECT, FcCompareBool, 14, 14 },
#define MATCH_OUTLINE 13