fix: windows gui build
This commit is contained in:
parent
b6161043ac
commit
672d92424d
2 changed files with 4 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue