Skip to content

Commit

Permalink
Draw rectangle for game area, even in gridless modes
Browse files Browse the repository at this point in the history
  • Loading branch information
kwakzalver committed Jan 11, 2024
1 parent 79c522c commit 00006be
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,22 @@ const Renderer = struct {
game.ROWS * G.BSIZE + G.BORDER,
);
},
else => {},
else => {
self.set_color(G.current_colorscheme.palette.fg_prim);
self.fill_rectangle(
G.SIZE,
G.SIZE,
game.COLUMNS * G.BSIZE + G.BORDER,
game.ROWS * G.BSIZE + G.BORDER,
);
self.set_color(G.current_colorscheme.palette.bg_prim);
self.fill_rectangle(
G.SIZE + G.BORDER,
G.SIZE + G.BORDER,
game.COLUMNS * G.BSIZE - G.BORDER,
game.ROWS * G.BSIZE - G.BORDER,
);
},
}

var r: u64 = 0;
Expand Down

0 comments on commit 00006be

Please sign in to comment.