More fixes

This commit is contained in:
2026-04-16 23:35:49 -05:00
parent 175f1e6443
commit f63186c691
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ pub fn SubMatrix(comptime T: type) type {
}
pub fn get(self: *const @This(), loc: Point) !T {
if (loc.x >= self._mask.width or loc.y >= self._mask.width) {
if (loc.x >= self._mask.width or loc.y >= self._mask.height) {
return Error.OutOfBounds;
}
+2 -2
View File
@@ -40,8 +40,8 @@ pub const DoubleBuffer = struct {
}
pub fn deinit(self: *@This(), gpa: Allocator) void {
gpa.free(self.display);
gpa.free(self.write);
gpa.free(self.a);
gpa.free(self.b);
}
pub fn frame(self: *@This(), loc: Point, size: Rect) SubMatrix(Cell) {