summaryrefslogtreecommitdiff
path: root/src/Messages.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Messages.zig')
-rw-r--r--src/Messages.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Messages.zig b/src/Messages.zig
index 0ab10dab..e18815e3 100644
--- a/src/Messages.zig
+++ b/src/Messages.zig
@@ -5,7 +5,6 @@ const pardes = @import("pardes.zig");
const memory = @import("memory.zig");
const std = @import("std");
const layout = @import("layout.zig");
-const animation = @import("animation.zig");
const ctlfs = @import("ninep/tree.zig");
const panes = @import("panes.zig");
const CellStyle = @import("surface.zig").CellStyle;
@@ -307,7 +306,7 @@ pub fn messageWake(p: *const Pardes, pane: *const Pane) ?u64 {
/// Animation frames a message timing lasts; at least one.
pub fn messageFrames(ms: u16) u16 {
- return @intCast(@max(1, (@as(u32, ms) + animation.frame_ms - 1) / animation.frame_ms));
+ return @intCast(@max(1, (@as(u32, ms) + pardes.frame_ms - 1) / pardes.frame_ms));
}
/// What notice band `i` says. The grid pass and the band layers both
@@ -874,7 +873,7 @@ test "an idle core wants no wake and a lingering message sleeps to its linger's
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 });
defer p.deinit();
while (p.nextEffect()) |_| {}
- const frame = animation.frame_ns;
+ const frame = pardes.frame_ns;
p.advance(1_000_000);
try std.testing.expectEqual(@as(?u64, null), p.nextWake());
const pane = p.panes[p.active].?;