fix: windows gui build

This commit is contained in:
CJ van den Berg 2025-12-09 20:51:16 +01:00
parent b6161043ac
commit 672d92424d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 1 deletions

View file

@ -16,7 +16,7 @@ pub const CursorShape = vaxis.Cell.CursorShape;
pub const style = @import("style.zig").StyleBits;
pub const styles = @import("style.zig");
const GraphemeCache = @import("GraphemeCache.zig");
pub const GraphemeCache = @import("GraphemeCache.zig");
const Self = @This();
pub const log_name = "vaxis";

View file

@ -7,6 +7,7 @@ const vaxis = @import("vaxis");
const Style = @import("theme").Style;
const Color = @import("theme").Color;
pub const CursorShape = vaxis.Cell.CursorShape;
const GraphemeCache = @import("tuirenderer").GraphemeCache;
pub const Plane = @import("tuirenderer").Plane;
pub const Layer = @import("tuirenderer").Layer;
@ -75,6 +76,7 @@ fn messageBoxThenPanic(
allocator: std.mem.Allocator,
vx: vaxis.Vaxis,
cache_storage: GraphemeCache.Storage = .{},
event_buffer: std.Io.Writer.Allocating,
@ -181,6 +183,7 @@ pub fn stdplane(self: *Self) Plane {
const name = "root";
var plane: Plane = .{
.window = self.vx.window(),
.cache = self.cache_storage.cache(),
.name_buf = undefined,
.name_len = name.len,
};