refactor: zigify imports and usages
This commit is contained in:
@@ -194,7 +194,7 @@ pub fn Scrollable(Event: type) type {
|
||||
|
||||
fn content(ctx: *anyopaque, cells: []Cell, size: Point) !void {
|
||||
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||
std.debug.assert(cells.len == @as(usize, this.size.x) * @as(usize, this.size.y));
|
||||
assert(cells.len == @as(usize, this.size.x) * @as(usize, this.size.y));
|
||||
const offset_x: usize = if (this.configuration.x_axis) 1 else 0;
|
||||
const offset_y: usize = if (this.configuration.y_axis) 1 else 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user