summaryrefslogtreecommitdiff
path: root/src/TerminalImages.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 21:02:51 -0300
committerGabriel Schneider <[email protected]>2026-11-05 22:08:14 -0300
commitd8e5fc18f5923c4213de1cb4105a677e725200af (patch)
treeec9adccb3ccb3118f1422777180b766cce55ba2b /src/TerminalImages.zig
parent5b135dc60d4e9f77be0a4f883439f3200ac30d30 (diff)
downloadpardes-d8e5fc18f5923c4213de1cb4105a677e725200af.tar.gz
pardes-d8e5fc18f5923c4213de1cb4105a677e725200af.zip
fields #41, a view's frontend is one field: windowed, native_images and native_image_patches, the three fields Event.frontend carries, are the session's frontend, a Frontend, so update's frontend arm is p.frontend = f where it copied them one by one; native_image_patches, each process's own, is said so on Frontend (its replica .local), where the session's list said it, so the digest and a dump leave it out as before, and the tape watches frontend where it watched the three (a host's write of patches alone, which only drawing reads, is no longer a set of its own on the tape); the reads in 22 files say p.frontend.native_images (macos.zig's by text, built nowhere here; dump.zig, the persistence agent's, only where it names native_images); views.zig's per-view fields name frontend; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back as a terminal's view without native images until its frontend says otherwise (a window's says so at once), and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/TerminalImages.zig')
-rw-r--r--src/TerminalImages.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TerminalImages.zig b/src/TerminalImages.zig
index 06b96f4b..0131568d 100644
--- a/src/TerminalImages.zig
+++ b/src/TerminalImages.zig
@@ -160,7 +160,7 @@ pub fn draw(
const bottom = pages.getBottomRight(.viewport) orelse return;
const cw: u32 = @max(1, p.cell_pixels.w);
const ch: u32 = @max(1, p.cell_pixels.h);
- const pixels = p.native_images and !ti.petscii;
+ const pixels = p.frontend.native_images and !ti.petscii;
const ctx: Ctx = .{ .ti = ti, .p = p, .s = s, .pane = pane_id, .serial = serial, .tx = tx, .body_y = body_y, .cols = cols, .rows_of = rows_of, .cw = cw, .ch = ch, .pixels = pixels };
// Handed on lowest z first (the storage's order is a hash map's), the
// order a shell draws them in; equal z keeps the order they came in.