diff options
Diffstat (limited to 'vendor/libghostty-vt/src/font/Atlas.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/font/Atlas.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/libghostty-vt/src/font/Atlas.zig b/vendor/libghostty-vt/src/font/Atlas.zig index d1206457..66e91c8f 100644 --- a/vendor/libghostty-vt/src/font/Atlas.zig +++ b/vendor/libghostty-vt/src/font/Atlas.zig @@ -32,7 +32,7 @@ data: []u8, size: u32 = 0, /// The nodes (rectangles) of available space. -nodes: std.ArrayListUnmanaged(Node) = .{}, +nodes: std.ArrayList(Node) = .empty, /// The format of the texture data being written into the Atlas. This must be /// uniform for all textures in the Atlas. If you have some textures with @@ -104,7 +104,7 @@ pub fn init(alloc: Allocator, size: u32, format: Format) Allocator.Error!Atlas { var result = Atlas{ .data = try alloc.alloc(u8, size * size * format.depth()), .size = size, - .nodes = .{}, + .nodes = .empty, .format = format, }; errdefer result.deinit(alloc); |
