summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/surface.zig b/src/surface.zig
index a9e69cca..eef787b4 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -3,6 +3,7 @@
const pardes = @import("pardes.zig");
const std = @import("std");
const layout = @import("layout.zig");
+const animation = @import("animation.zig");
const uucode = @import("uucode");
const vaxis = @import("vaxis");
const panes = @import("panes.zig");
@@ -70,7 +71,7 @@ pub const AsciiDiff = struct {
/// Long printable-byte walks complete in about the same time as the other
/// panel effects. Extra distance is crossed by eased character skips.
- pub const max_movement_frames = layout.ascii_max_movement_frames;
+ pub const max_movement_frames = animation.ascii_max_movement_frames;
pub fn between(old: *const Cell, new: *const Cell) ?AsciiDiff {
const from = old.printableAscii() orelse return null;
@@ -341,7 +342,7 @@ pub const Surface = struct {
cursor: ?struct { x: u16, y: u16, bar: bool = false } = null,
images: []?ImagePlace = &.{},
nimages: usize = 0,
- panel_tracks: [MAX_PANES * 2]layout.Track = undefined,
+ panel_tracks: [MAX_PANES * 2]animation.Track = undefined,
npanel_tracks: usize = 0,
previous_cells: []const Cell = &.{},
previous_body_layers: []const BodyLayer = &.{},
@@ -356,7 +357,7 @@ pub const Surface = struct {
return &s.body_layers;
}
- pub fn panelTracks(s: *const Surface) []const layout.Track {
+ pub fn panelTracks(s: *const Surface) []const animation.Track {
return s.panel_tracks[0..s.npanel_tracks];
}