summaryrefslogtreecommitdiff
path: root/core/draw.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/draw.zig')
-rw-r--r--core/draw.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/draw.zig b/core/draw.zig
index ed317650..419b3a84 100644
--- a/core/draw.zig
+++ b/core/draw.zig
@@ -86,6 +86,7 @@ pub fn place(p: *Pardes, s: *Surface) void {
s.nregions = 0;
s.nrail_ticks = 0;
s.lanes.clearRetainingCapacity();
+ s.heat.clearRetainingCapacity();
// The facts filled in the walk the frame's places take anyway.
viewFacts(p, &p.facts);
s.facts = &p.facts;
@@ -511,6 +512,7 @@ fn renderPane(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r:
}
try body_layer.joinBody(p, s, arena, pane, r, id, active, rail.*);
+ if (pane.layers.heat > 0) @import("jj.zig").railHeat(p, s, pane, id, rail.rect);
// A terminal panned to its cursor in a view shorter than it: an arrow
// in the gutter's first body row says rows are above (views.zig).
if (pane.pan > 0) s.set(r.x, p.bodyTop(pane, r), "↑", .{ .fg = .{ .rgb = chrome.box } });