mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-25 08:43:55 +00:00
Fix invalid c types with fontconfig
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user