Fix invalid c types with fontconfig

This commit is contained in:
Mitchell Hashimoto
2022-09-23 13:14:08 -07:00
parent 1a2b684b0e
commit 3bd9ed5952
2 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ pub const Pattern = opaque {
pub fn add(self: *Pattern, prop: Property, value: Value, append: bool) bool {
return c.FcPatternAdd(
self.cval(),
prop.cval(),
prop.cval().ptr,
value.cval(),
if (append) c.FcTrue else c.FcFalse,
) == c.FcTrue;
@@ -39,7 +39,7 @@ pub const Pattern = opaque {
var val: c.struct__FcValue = undefined;
try @intToEnum(Result, c.FcPatternGet(
self.cval(),
prop.cval(),
prop.cval().ptr,
@intCast(c_int, id),
&val,
)).toError();