vaxis: fix window initialization

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2024-01-19 10:31:23 -06:00
parent 959ae27c9f
commit 74d55aaa19
2 changed files with 5 additions and 3 deletions

View file

@ -33,6 +33,9 @@ pub fn main() !void {
},
else => {},
}
const win = vx.window();
_ = win;
}
}

View file

@ -93,9 +93,8 @@ pub fn Vaxis(comptime T: type) type {
return Window{
.x_off = 0,
.y_off = 0,
.w = .{.expand},
.h = .{.expand},
.parent = null,
.width = self.screen.width,
.height = self.screen.height,
.screen = &self.screen,
};
}