diff options
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index 22371a78..6f9e2071 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -3219,7 +3219,7 @@ test "a terminal's kitty graphics image is drawn where its program placed it, an const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.active = 0; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); @@ -3278,7 +3278,7 @@ test "ED 3 takes away a kitty placement whose row it erased: it never comes back const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); @@ -3345,7 +3345,7 @@ test "a virtual kitty placement shows through its placeholder cells, which draw const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .shells = 1 }); defer p.deinit(); - p.native_images = true; + p.frontend.native_images = true; p.update(.{ .resize = .{ .cols = 80, .rows = 24, .cell_pixels = .{ .w = 10, .h = 20 } } }); var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); @@ -3397,7 +3397,7 @@ test "without pixels, or by the Petscii builtin, a terminal's image is glyph art }.check; // A shell that draws no pixels (a tty under no kitty graphics): forced. - p.native_images = false; + p.frontend.native_images = false; var s = try p.render(frame.allocator()); try std.testing.expectEqual(@as(usize, 0), imagePlaces(s).len); try std.testing.expect(painted(s.at(tx, y)) and painted(s.at(tx + 1, y))); @@ -3407,7 +3407,7 @@ test "without pixels, or by the Petscii builtin, a terminal's image is glyph art // Pixels where they can be drawn; the builtin flips the pane to glyphs // and back. - p.native_images = true; + p.frontend.native_images = true; _ = frame.reset(.retain_capacity); s = try p.render(frame.allocator()); try std.testing.expectEqual(@as(usize, 1), imagePlaces(s).len); |
