diff --git a/examples/main.zig b/examples/main.zig index ce299d0..ce65859 100644 --- a/examples/main.zig +++ b/examples/main.zig @@ -33,6 +33,9 @@ pub fn main() !void { }, else => {}, } + + const win = vx.window(); + _ = win; } } diff --git a/src/vaxis.zig b/src/vaxis.zig index fe5a040..e78fb22 100644 --- a/src/vaxis.zig +++ b/src/vaxis.zig @@ -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, }; }