Naming convention

This commit is contained in:
peterc-s committed 2024-10-23 12:58:53 +01:00
1 parent 1ddccf2683
commit 7e69260511
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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();
}