Fixed the iterator
This commit is contained in:
@@ -22,6 +22,8 @@ pub const DoubleBuffer = struct {
|
||||
|
||||
pub fn init(gpa: Allocator, size: Rect) !DoubleBuffer {
|
||||
const display = try gpa.alloc(Cell, size.area());
|
||||
errdefer gpa.free(display);
|
||||
|
||||
const write = try gpa.alloc(Cell, size.area());
|
||||
|
||||
return .{
|
||||
|
||||
Reference in New Issue
Block a user