diff --git a/src/animations/Doom.zig b/src/animations/Doom.zig index 9f8647e..942acab 100644 --- a/src/animations/Doom.zig +++ b/src/animations/Doom.zig @@ -50,7 +50,7 @@ pub fn realloc(self: *Doom) !void { self.buffer = buffer; } -pub fn draw_with_update(self: Doom) void { +pub fn drawWithUpdate(self: Doom) void { for (0..self.terminal_buffer.width) |x| { for (1..self.terminal_buffer.height) |y| { // get source index diff --git a/src/animations/Matrix.zig b/src/animations/Matrix.zig index fa64885..a343e02 100644 --- a/src/animations/Matrix.zig +++ b/src/animations/Matrix.zig @@ -68,7 +68,7 @@ pub fn realloc(self: *Matrix) !void { self.lines = lines; } -pub fn draw_with_update(self: *Matrix) void { +pub fn drawWithUpdate(self: *Matrix) void { const buf_height = self.terminal_buffer.height; const buf_width = self.terminal_buffer.width; diff --git a/src/main.zig b/src/main.zig index 2944a8b..04ac604 100644 --- a/src/main.zig +++ b/src/main.zig @@ -388,7 +388,7 @@ pub fn main() !void { .doom => { if (animation_timer.read() / std.time.ns_per_ms > config.animation_refresh_ms) { animation_timer.reset(); - doom.draw_with_update(); + doom.drawWithUpdate(); } else { doom.draw(); } @@ -396,7 +396,7 @@ pub fn main() !void { .matrix => { if (animation_timer.read() / std.time.ns_per_ms > config.animation_refresh_ms) { animation_timer.reset(); - matrix.draw_with_update(); + matrix.drawWithUpdate(); } else { matrix.draw(); }