aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
commit4feb8c7dab2b0a3492b8248ee12c3f0a475106f1 (patch)
treef89a6389e24ab362cbdb21e1dbd4f96b404472fd /src/main.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.zig b/src/main.zig
index f02a603..400df48 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -44,16 +44,16 @@ pub fn main() !void {
log.debug("{}", .{shm});
}
- const pool = try wl.Shm.instances.items[0].create_pool(&ctx, 800 * 600 * (wl.Shm.Format.argb8888).bytes_per_pixel());
- defer pool.deinit(&ctx);
+ const pool = try wl.Shm.instances.items[0].create_pool(ctx, 800 * 600 * (wl.Shm.Format.argb8888).bytes_per_pixel());
+ defer pool.deinit(ctx);
try display.roundtrip(allocator);
- const buffer = try pool.create_buffer(&ctx, 0, 800, 600, .argb8888);
+ const buffer = try pool.create_buffer(ctx, 0, 800, 600, .argb8888);
defer ctx.display.request(buffer, .{ .destroy = {} }) catch |e| log.err("error {}", .{e});
- const surface = try wl.Compositor.instances.items[0].create_surface(&ctx);
- defer surface.deinit(&ctx);
+ const surface = try wl.Compositor.instances.items[0].create_surface(ctx);
+ defer surface.deinit(ctx);
try display.roundtrip(allocator);