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 => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const win = vx.window();
|
||||||
|
_ = win;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,9 +93,8 @@ pub fn Vaxis(comptime T: type) type {
|
||||||
return Window{
|
return Window{
|
||||||
.x_off = 0,
|
.x_off = 0,
|
||||||
.y_off = 0,
|
.y_off = 0,
|
||||||
.w = .{.expand},
|
.width = self.screen.width,
|
||||||
.h = .{.expand},
|
.height = self.screen.height,
|
||||||
.parent = null,
|
|
||||||
.screen = &self.screen,
|
.screen = &self.screen,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue