mirror of
https://github.com/fairyglade/ly.git
synced 2026-09-22 12:00:19 +00:00
Handle termbox2 errors
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -71,14 +71,14 @@ fn draw(self: *Cascade) void {
|
||||
|
||||
if ((self.buffer.random.int(u16) % 10) > 7) continue;
|
||||
|
||||
cell.?.put(x, y);
|
||||
cell.?.put(x, y) catch {};
|
||||
|
||||
var space = Cell.init(
|
||||
' ',
|
||||
cell_under.?.fg,
|
||||
cell_under.?.bg,
|
||||
);
|
||||
space.put(x, y - 1);
|
||||
space.put(x, y - 1) catch {};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,6 @@ fn draw(self: *Cascade) void {
|
||||
self.current_auth_fails.* = 0;
|
||||
}
|
||||
|
||||
TerminalBuffer.presentBuffer();
|
||||
TerminalBuffer.presentBuffer() catch {};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user