Fixed the build.

This commit is contained in:
Pietro Gagliardi 2017-05-17 19:21:27 -04:00
parent 4f31a1331c
commit 3e28887a24
2 changed files with 3 additions and 3 deletions

View File

@ -342,9 +342,9 @@ static int specsIdentical(struct attr *attr, uiAttributeSpec *spec)
attr->spec.G == spec->G && attr->spec.G == spec->G &&
attr->spec.B == spec->B && attr->spec.B == spec->B &&
attr->spec.A == spec->A; attr->spec.A == spec->A;
// TODO use boolsEqual() on boolean features
} }
// handles the rest // handles the rest, including pointer comparison for uiAttributeFeatures
// TODO rename it to uiAttributeOpenTypeFeatures?
return attr->spec.Value == spec->Value; return attr->spec.Value == spec->Value;
} }

View File

@ -195,7 +195,7 @@ static int processAttribute(uiAttributedString *s, uiAttributeSpec *spec, size_t
break; break;
} }
break; break;
cae uiAttributeOpenTypeFeatures: case uiAttributeFeatures:
setFeaturesInRange(p, start, end, (uiOpenTypeFeatures *) (spec->Value)); setFeaturesInRange(p, start, end, (uiOpenTypeFeatures *) (spec->Value));
break; break;
default: default: