diff options
Diffstat (limited to 'src/Layer.zig')
| -rw-r--r-- | src/Layer.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Layer.zig b/src/Layer.zig index 3522fce8..66f8b9c0 100644 --- a/src/Layer.zig +++ b/src/Layer.zig @@ -12,6 +12,7 @@ const std = @import("std"); const pardes = @import("pardes.zig"); const config = @import("config.zig"); const limits = @import("memory.zig").limits; +const layout = @import("layout.zig"); const Layer = @This(); @@ -257,7 +258,7 @@ pub fn columnAt(p: *const pardes.Pardes, kind: Kind, id: usize, supplied: ?TagHi point.pixel_x = std.math.clamp(point.pixel_x, left, @max(left, right - 0.001)); point.pixel_y = (@as(f32, @floatFromInt(v.y + line)) + 0.5) * bh; } - return if (p.reprojectTagHit(point)) |mapped| mapped.col else null; + return if (layout.reprojectTagHit(p, point)) |mapped| mapped.col else null; } /// A tag caret `w` wide at glyph `x`, its left and right edges in the unit |
