diff options
Diffstat (limited to 'anim/src/cursor.zig')
| -rw-r--r-- | anim/src/cursor.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/anim/src/cursor.zig b/anim/src/cursor.zig index 6e3a5b7..ec05ec0 100644 --- a/anim/src/cursor.zig +++ b/anim/src/cursor.zig @@ -58,6 +58,10 @@ pub const Levels = struct { /// How many lines the source panel shows (the split's): a step that /// takes the program out of its window has the window's glide to wait for. source_rows: u32 = 12, + /// A step that makes one syscall is drawn as its crossing (the context + /// sets it, `Context.Options.syscalls`): what the step changed in the + /// registers strikes once the call is back. + crossings: bool = false, }; /// How a step is drawn. Walk: everything, as a sentence. Run: the mark and @@ -351,6 +355,7 @@ pub const Cursor = struct { .of = c.of, .place = 0, .fired = c.levels.fire, + .crossings = c.levels.crossings, .way = .{ c.first, c.last }, }; for (&n.stops, c.stops) |*stop_at, v| stop_at.* = whole(rec, placed.value(v)); @@ -403,6 +408,8 @@ pub const Now = struct { place: f32, /// Where the scene's steps fire (`Levels.fire`). fired: @FieldType(Levels, "fire") = .source, + /// Steps that make a syscall cross into the kernel (`Levels.crossings`). + crossings: bool = false, /// The scene's way through the recording: its first moment and its last. way: [2]u64 = .{ 0, 0 }, |
