vaxis: fix window initialization
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
parent
959ae27c9f
commit
74d55aaa19
2 changed files with 5 additions and 3 deletions
|
@ -33,6 +33,9 @@ pub fn main() !void {
|
|||
},
|
||||
else => {},
|
||||
}
|
||||
|
||||
const win = vx.window();
|
||||
_ = win;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue