From 6d95ab65e65ae842434f7965e07edd6e4a83bdff Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 14 Oct 2024 19:16:25 -0500 Subject: [PATCH] example(main): fix initChild call --- examples/main.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/main.zig b/examples/main.zig index 9f2683d..4cfeb13 100644 --- a/examples/main.zig +++ b/examples/main.zig @@ -71,7 +71,9 @@ pub fn main() !void { // fill the remaining space of the parent. Child windows do not store a // reference to their parent: this is true immediate mode. Do not store // windows, always create new windows each render cycle - const child = win.initChild(win.width / 2 - msg.len / 2, win.height / 2, .expand, .expand); + const child = win.child( + .{ .x_off = win.width / 2 - msg.len / 2, .y_off = win.height / 2 }, + ); // Loop through the message and print the cells to the screen for (msg, 0..) |_, i| { const cell: Cell = .{