fix up for new zig

This commit is contained in:
Mitchell Hashimoto
2023-06-30 13:53:05 -07:00
parent ef5d86ffb0
commit 45da58188c
2 changed files with 5 additions and 5 deletions

View File

@@ -132,11 +132,11 @@ pub const Font = opaque {
}
pub fn getUnitsPerEm(self: *Font) u32 {
return c.CTFontGetUnitsPerEm(@ptrCast(c.CTFontRef, self));
return c.CTFontGetUnitsPerEm(@ptrCast(self));
}
pub fn getSize(self: *Font) f64 {
return c.CTFontGetSize(@ptrCast(c.CTFontRef, self));
return c.CTFontGetSize(@ptrCast(self));
}
};