diff options
Diffstat (limited to 'dev/gui')
| -rw-r--r-- | dev/gui/gui.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index 4e074a6a..bdbd7880 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -4894,6 +4894,16 @@ fn buildDecor(g: *Gui, gpa: std.mem.Allocator, surface: *const pardes.Surface, g } else false; if (grid_bottom < win_h and tag_last) try addDecor(g, gpa, 0, grid_bottom, win_w, win_h, chrome.tag_bg, 1, win_w, win_h); try paneDecor(g, gpa, regions, surface.rail_ticks[0..surface.nrail_ticks], chrome, layout, surface.cols, surface.rows, win_w, win_h); + // The changes' lanes (jj.paint): a strip a level in the gutter's + // lane cells, each a third of a cell wide with half that of air + // before it, so three take one and a half cells (the ruled + // sample A); whole pixels, so every row's strip lines up. + for (surface.lanes.items) |lane| { + const w = @max(1, @round(layout.w / 3)); + const x0 = @round(@as(f32, @floatFromInt(lane.x)) * layout.w + w / 2 + @as(f32, @floatFromInt(lane.level)) * (w + w / 2)); + const y0 = @as(f32, @floatFromInt(lane.y)) * layout.h; + try addDecor(g, gpa, x0, y0, x0 + w, y0 + layout.h, lane.rgb, 1, win_w, win_h); + } // A single spine runs down each column, through every tag and body. for (regions) |column| { if (column.kind != .column) continue; |
