diff options
Diffstat (limited to 'src/wl/shm/pool.zig')
| -rw-r--r-- | src/wl/shm/pool.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wl/shm/pool.zig b/src/wl/shm/pool.zig index 40486d6..62b6c18 100644 --- a/src/wl/shm/pool.zig +++ b/src/wl/shm/pool.zig @@ -21,7 +21,7 @@ buffer: []u8, pub fn init( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, size: usize, ) !void { var file = try AnonymousFile.init_random(); @@ -38,7 +38,7 @@ pub fn init( }; } -pub fn deinit(self: *Self, ctx: *const wayland.Context) void { +pub fn deinit(self: *Self, ctx: wayland.Context) void { self.file.close(); std.posix.munmap(@alignCast(self.buffer)); ctx.display.registry.disable_object(self.handle); @@ -50,7 +50,7 @@ pub fn deinit(self: *Self, ctx: *const wayland.Context) void { pub fn create_buffer( self: *Self, - ctx: *const wayland.Context, + ctx: wayland.Context, offset: usize, width: usize, height: usize, |