diff options
Diffstat (limited to 'test/kitty.zig')
| -rw-r--r-- | test/kitty.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/kitty.zig b/test/kitty.zig index f222f9cf..70e20139 100644 --- a/test/kitty.zig +++ b/test/kitty.zig @@ -71,7 +71,7 @@ const Rig = struct { std.testing.log_level = .err; // A core boots one shell or the classic three. const p = try Pardes.init(gpa, .{ .cols = 120, .rows = 40, .shells = if (shells > 1) 3 else 1 }); - p.frontend.native_images = true; + p.view().frontend.native_images = true; p.update(.{ .resize = .{ .cols = 120, .rows = 40, .cell_pixels = .{ .w = 10, .h = 20 } } }); for (p.panes) |slot| if (slot) |each| { each.body.mode = .tty; @@ -141,7 +141,7 @@ const Rig = struct { /// The top-left cell of pane `id`'s body, in screen cells. fn origin(r: *Rig, id: u8) struct { x: u16, y: u16 } { - const rect = r.p.rects[id]; + const rect = r.p.view().rects[id]; return .{ .x = rect.x + config.GUTTER, .y = r.p.bodyTop(r.pane(id), rect) }; } @@ -1200,7 +1200,7 @@ test "kitty: an image wider than its pane is cut at the pane's edge, never drawn var r = try Rig.init(3); defer r.deinit(); // The classic boot: two columns. Pane 0 is in the left one. - const rect = r.p.rects[0]; + const rect = r.p.view().rects[0]; const o = r.origin(0); const right = rect.x + rect.w; // 2x1 cells at its last-but-one column: one cell is the pane's. @@ -1319,7 +1319,7 @@ test "kitty: under a shell that draws no pixels, a 64x64 image over 8x4 cells is // The glyph art a tty draws there is the tty's test (tui.zig). var r = try Rig.init(1); defer r.deinit(); - r.p.frontend.native_images = false; + r.p.view().frontend.native_images = false; r.p.update(.{ .resize = .{ .cols = 120, .rows = 40, .cell_pixels = .{ .w = 8, .h = 16 } } }); r.drain(); // Not the frame's arena: each frame resets that. |
