diff options
Diffstat (limited to 'src/screen_state.zig')
| -rw-r--r-- | src/screen_state.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_state.zig b/src/screen_state.zig index bcf4b137..6bef70a6 100644 --- a/src/screen_state.zig +++ b/src/screen_state.zig @@ -119,7 +119,7 @@ pub const Rows = struct { } }; -fn pinOf(pages: anytype, top: u64, abs: u64) ?Pin { +fn pinOf(pages: *const vt.PageList, top: u64, abs: u64) ?Pin { if (abs >= top) return pages.pin(.{ .active = .{ .y = std.math.cast(u32, abs - top) orelse return null } }); const d = std.math.cast(usize, top - abs) orelse return null; return pages.getTopLeft(.active).up(d); |
