invert attribute

This commit is contained in:
Mitchell Hashimoto
2022-06-30 10:05:47 -07:00
parent f53efa633a
commit 527d8baaa0
2 changed files with 41 additions and 10 deletions

View File

@@ -150,6 +150,11 @@ pub fn create(alloc: Allocator, loop: libuv.Loop, config: *const Config) !*Windo
const window_size = try window.getSize();
var grid = try Grid.init(alloc);
try grid.setScreenSize(.{ .width = window_size.width, .height = window_size.height });
grid.background = .{
.r = config.background.r,
.g = config.background.g,
.b = config.background.b,
};
grid.foreground = .{
.r = config.foreground.r,
.g = config.foreground.g,