summaryrefslogtreecommitdiff
path: root/abi
diff options
context:
space:
mode:
Diffstat (limited to 'abi')
-rw-r--r--abi/term.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/abi/term.zig b/abi/term.zig
index de32a575..c437f62f 100644
--- a/abi/term.zig
+++ b/abi/term.zig
@@ -319,7 +319,7 @@ pub const Ops = struct {
/// then on).
open: *const fn (gpa: std.mem.Allocator, cols: u16, rows: u16) error{ OutOfMemory, InvalidValue }!*State,
/// It and what it holds, freed.
- close: *const fn (s: *State, gpa: std.mem.Allocator) void,
+ close: *const fn (s: *State) void,
/// When its next kitty animation frame is due (ms on the core's clock),
/// as its last drawn frame left it; null when nothing plays.
due: *const fn (s: *const State) ?u64,
@@ -399,7 +399,8 @@ pub const Ops = struct {
/// `cells`: each cell's style in the theme's colours (through the
/// filter when `filtered`), its bytes and width.
paint: *const fn (s: *State, ink: *const Ink, palette: *FilterPalette, filtered: bool, first: u16, cols: u16, cells: []Painted, rows: []PaintedRow) void,
- /// Its kitty images over the body's rows, appended to `out`, and their
+ /// Its kitty images over the body's rows, appended to `out` (`gpa`'s;
+ /// what it keeps to draw them is its own allocator's), and their
/// placeholder cells blanked in `frame` (`frame_cols` wide).
images: *const fn (s: *State, gpa: std.mem.Allocator, at: ImagesAt, out: *std.ArrayList(plain.Placement), frame: []plain.Cell, frame_cols: u16) void,
petscii: *const fn (s: ?*const State) ?bool,