freetype: update to latest Zig API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-29 19:02:44 -07:00
parent e5aa205340
commit beb93ec893

View file

@ -217,7 +217,7 @@ pub const Outline = struct {
callbacks: Funcs(Context),
fn getSelf(ptr: ?*anyopaque) *Self {
return @as(*Self, @ptrCast(@alignCast(@alignOf(Self), ptr)));
return @as(*Self, @ptrCast(@alignCast(ptr)));
}
pub fn move_to(to: [*c]const c.FT_Vector, ctx: ?*anyopaque) callconv(.C) c_int {