module: make sendGlobal() global args type known
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3661cb8721
commit
23b03f973f
5 changed files with 23 additions and 24 deletions
|
|
@ -10,7 +10,7 @@ pub const Mod = mach.Mod(@This());
|
|||
|
||||
pub const events = .{
|
||||
.{ .global = .deinit, .handler = deinit },
|
||||
.{ .local = .init, .handler = init },
|
||||
.{ .global = .init, .handler = init },
|
||||
.{ .local = .prepare, .handler = prepare },
|
||||
};
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ fn init(
|
|||
s.ft = try ft.Library.init();
|
||||
s.face = try s.ft.createFaceMemory(assets.roboto_medium_ttf, 0);
|
||||
|
||||
text_mod.send(.prepare, .{&[_]u21{ '?', '!', 'a', 'b', '#', '@', '%', '$', '&', '^', '*', '+', '=', '<', '>', '/', ':', ';', 'Q', '~' }});
|
||||
text_mod.send(.prepare, .{ .@"0" = &[_]u21{ '?', '!', 'a', 'b', '#', '@', '%', '$', '&', '^', '*', '+', '=', '<', '>', '/', ':', ';', 'Q', '~' } });
|
||||
}
|
||||
|
||||
fn prepare(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue