diff --git a/src/animations/DurFile.zig b/src/animations/DurFile.zig index 601cdfe..eb1f252 100644 --- a/src/animations/DurFile.zig +++ b/src/animations/DurFile.zig @@ -197,7 +197,7 @@ const tb_color_16 = [16]u32{ // Using bold for bright colors allows for all 16 colors to be rendered on tty term const rgb_color_16 = [16]u32{ - Color.DEFAULT, // DEFAULT instead of TRUE_BLACK to not break compositors (the ladder ignores transparency) + Color.DEFAULT, // DEFAULT instead of TRUE_BLACK to not break compositors (the latter ignores transparency) Color.TRUE_DIM_RED, Color.TRUE_DIM_GREEN, Color.TRUE_DIM_YELLOW, diff --git a/src/main.zig b/src/main.zig index 0c68c94..608f4e2 100644 --- a/src/main.zig +++ b/src/main.zig @@ -574,14 +574,8 @@ pub fn main() !void { animation = game_of_life.animation(); }, .dur_file => { - var dur : ?DurFile = DurFile.init(allocator, &buffer, log_writer, config.dur_file_path, config.dur_x_offset, config.dur_y_offset, config.full_color) catch null; - - if (dur) |*d| { - animation = d.animation(); - } else { - var dummy = Dummy{}; - animation = dummy.animation(); - } + var dur = try DurFile.init(allocator, &buffer, log_writer, config.dur_file_path, config.dur_x_offset, config.dur_y_offset, config.full_color); + animation = dur.animation(); }, } defer animation.deinit();