More fixes
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user