do not use anyopaque for image and add flags
1 files changed, 5 insertions(+), 1 deletions(-) M schrift.zig
M schrift.zig => schrift.zig +5 -1
@@ 12,6 12,10 @@ pub const SFT = extern struct { y_offset: f64, flags: c_int, pub const FLAGS = struct { pub const DOWNWARD_Y = 1; }; extern fn sft_lmetrics(sft: *const SFT, buffer: *LMetrics) c_int; pub fn lmetrics(self: *const SFT, buffer: *LMetrics) !void { @@ const ret = sft_lmetrics(self, buffer); 82,7 86,7 @@ pub const Kerning = extern struct { }; pub const Image = extern struct { pixels: [*]anyopaque, pixels: [*]u8, width: c_int, height: c_int, };