summaryrefslogtreecommitdiff
path: root/runtime/macos.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/macos.zig')
-rw-r--r--runtime/macos.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/macos.zig b/runtime/macos.zig
index 9475eb78..3e9c7b9b 100644
--- a/runtime/macos.zig
+++ b/runtime/macos.zig
@@ -1251,7 +1251,7 @@ fn tagCursorCovered(core: *const pardes.Pardes) bool {
return false;
}
-fn presentFrame(ctx: ?*anyopaque, surface: *const pardes.Surface) void {
+fn presentFrame(ctx: ?*anyopaque, surface: *const pardes.Surface) bool {
const st = hostState(ctx);
const tz = tracy.zone(@src(), "presentFrame");
defer tz.end();
@@ -1266,7 +1266,7 @@ fn presentFrame(ctx: ?*anyopaque, surface: *const pardes.Surface) void {
st.gpa.alloc(Cell, count)
else
st.gpa.realloc(st.cells, count);
- st.cells = resized catch return;
+ st.cells = resized catch return true;
}
}
st.frame_len = count;
@@ -1279,6 +1279,7 @@ fn presentFrame(ctx: ?*anyopaque, surface: *const pardes.Surface) void {
}
blankTagCells(st.cells[0..count], surface.cols, surface.rows, surface.cells, &surface.tag_layers);
collectImages(st, surface);
+ return true;
}
fn collectImages(st: *State, surface: *const pardes.Surface) void {