Skip to content

Commit

Permalink
Don't parse font twice
Browse files Browse the repository at this point in the history
  • Loading branch information
nmeum committed Jun 2, 2024
1 parent 8cd6a19 commit c781532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn parseFlags(args: [][*:0]u8) !Config {
};

return Config{
.font = try fcft.Font.fromName(&font_names, null),
.font = font,
.height = @intCast(height),
.normalFgColor = try parseColorFlag(result.flags.nf, "0xb8b8b8"),
.normalBgColor = try parseColorFlag(result.flags.nb, "0x282828"),
Expand Down

0 comments on commit c781532

Please sign in to comment.