summaryrefslogtreecommitdiff
path: root/src/animation.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:21:07 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:20:23 -0300
commitc71ec2ba07a791571509552d218dce38774428fa (patch)
tree559bb0f0bcd9d2975f776edab76554db0940a79e /src/animation.zig
parent97289210592f8a863d46e1b5c0e0e26562de9876 (diff)
downloadpardes-c71ec2ba07a791571509552d218dce38774428fa.tar.gz
pardes-c71ec2ba07a791571509552d218dce38774428fa.zip
draw: parameters nobody reads go (renderBody's prebuilt text, null at every call; paintPaneTag's capacity; renderHeaderLayer's and paintHeaders' arena), a pane tag's look-hover preview is painted once where it was painted twice over the same cells, the column grip's ink is inkOn's instead of a copy of its sum, boxBorder, inactiveDim, paintPaneTag and paintHeaders are draw's own, and animation's two switches with same-result arms keep one arm each
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/animation.zig')
-rw-r--r--src/animation.zig13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/animation.zig b/src/animation.zig
index 1738ba7d..ae116e27 100644
--- a/src/animation.zig
+++ b/src/animation.zig
@@ -211,9 +211,9 @@ pub const Track = extern struct {
pub fn visualBox(track: Track) Box {
return switch (track.effect) {
.slide, .zoom, .vertical => track.presented(),
- .off, .dissolve => track.to,
- // Every character effect stays inside the pane's final rectangle.
- .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to,
+ // A fade, a dissolve and every character effect stay inside the
+ // pane's final rectangle.
+ .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to,
};
}
@@ -244,10 +244,9 @@ pub fn openingBox(effect: Transition, target: Box, screen_width: u16) Box {
from.y += target.h;
break :blk from;
},
- .off, .dissolve => target,
- // Character effects own the glyphs inside a fixed rectangle, so their
- // panel opens at exactly its final geometry.
- .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target,
+ // A dissolve and the character effects own the glyphs inside a fixed
+ // rectangle, so their panel opens at exactly its final geometry.
+ .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target,
};
}