this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw.App + examples: Fix compile errors The `ucd` arg to most `.init` functions doesn't exist anymore.

authored by

Justus Klausecker and committed by
Tim Culverhouse
ed29c7a6 d36e6d23

+5 -7
+1 -1
examples/cli.zig
··· 29 29 30 30 try vx.queryTerminal(tty.writer(), 1 * std.time.ns_per_s); 31 31 32 - var text_input = TextInput.init(alloc, &vx.unicode); 32 + var text_input = TextInput.init(alloc); 33 33 defer text_input.deinit(); 34 34 35 35 var selected_option: ?usize = null;
+1 -1
examples/table.zig
··· 66 66 }; 67 67 var title_segs = [_]vaxis.Cell.Segment{ title_logo, title_info, title_disclaimer }; 68 68 69 - var cmd_input = vaxis.widgets.TextInput.init(alloc, &vx.unicode); 69 + var cmd_input = vaxis.widgets.TextInput.init(alloc); 70 70 defer cmd_input.deinit(); 71 71 72 72 // Colors
+2 -2
examples/view.zig
··· 68 68 69 69 // Initialize Views 70 70 // - Large Map 71 - var lg_map_view = try View.init(alloc, &vx.unicode, .{ .width = lg_map_width, .height = lg_map_height }); 71 + var lg_map_view = try View.init(alloc, .{ .width = lg_map_width, .height = lg_map_height }); 72 72 defer lg_map_view.deinit(); 73 73 //w = lg_map_view.screen.width; 74 74 //h = lg_map_view.screen.height; ··· 76 76 _ = mem.replace(u8, lg_world_map, "\n", "", lg_map_buf[0..]); 77 77 _ = lg_map_view.printSegment(.{ .text = lg_map_buf[0..] }, .{ .wrap = .grapheme }); 78 78 // - Small Map 79 - var sm_map_view = try View.init(alloc, &vx.unicode, .{ .width = sm_map_width, .height = sm_map_height }); 79 + var sm_map_view = try View.init(alloc, .{ .width = sm_map_width, .height = sm_map_height }); 80 80 defer sm_map_view.deinit(); 81 81 w = sm_map_view.screen.width; 82 82 h = sm_map_view.screen.height;
-1
examples/vt.zig
··· 54 54 alloc, 55 55 &argv, 56 56 &env, 57 - &vx.unicode, 58 57 vt_opts, 59 58 &write_buf, 60 59 );
+1 -2
src/vxfw/App.zig
··· 80 80 vx.caps.sgr_pixels = false; 81 81 try vx.setMouseMode(tty.writer(), true); 82 82 83 - // Give DrawContext the unicode data 84 - vxfw.DrawContext.init(&vx.unicode, vx.screen.width_method); 83 + vxfw.DrawContext.init(vx.screen.width_method); 85 84 86 85 const framerate: u64 = if (opts.framerate > 0) opts.framerate else 60; 87 86 // Calculate tick rate