summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 15:05:42 -0300
committerGabriel Schneider <[email protected]>2026-11-26 15:28:33 -0300
commit1e9bb9c14e5d1c32e2bae774805148b8554ea8fb (patch)
treec6069fd8e7537760db349b8afc4bfb3e6a0d66af
parent12715baaa9341fbc79c8bf4573c372843064ea51 (diff)
downloadpardes-1e9bb9c14e5d1c32e2bae774805148b8554ea8fb.tar.gz
pardes-1e9bb9c14e5d1c32e2bae774805148b8554ea8fb.zip
addons/snake_shader: its test's window gives the theme's search hits, `hit` and `hit_current`, the two fields ABI 3.4 put in addon.Window (FP's krtvqvyq 2dae98b564e6: a kind's window holds the theme's hit colours, read by a PDF's search), so the addon's test compiles again (the final integration's frame gate, M3's mgate: build-debug and the ReleaseFast prefix both failed on `zig build install snake-shader veil -Dplatform=gui`, `addons/snake_shader/snake_shader.zig:545:14: error: missing struct field: hit`, and with no ReleaseFast prefix no perfab, perfops or timedemo ran); THE CAUSE: krtvqvyq added the two fields with no default and gave them in pdf.zig's test window, the one other literal of the struct; the snake shader's test, built only by the gui's `snake-shader` step (no tui gate builds it), was left without them; THE FIX: `.hit = .default, .hit_current = .default` in that literal (the snake draws no search hits); TEST CODE ONLY: no binary the frames or the install run changes; RUN: the gate's build-debug log above fails; `zig build snake-shader -Dplatform=gui` 7/7 tests now; a user could not hit it (a test), every gui build of the gate's step did; load 2.0
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
-rw-r--r--addons/snake_shader/snake_shader.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/snake_shader/snake_shader.zig b/addons/snake_shader/snake_shader.zig
index 65e1dd44..cc715dd3 100644
--- a/addons/snake_shader/snake_shader.zig
+++ b/addons/snake_shader/snake_shader.zig
@@ -542,7 +542,7 @@ test "GPU fallback stays optional and dynamic board and post uniforms encode wit
output.gpu = Capture.emit;
output.gpu_ctx = &capture;
var cells: [80 * 30]addon.c.pa_cell = @splat(std.mem.zeroes(addon.c.pa_cell));
- s.paint(.{ .cells = &cells, .stride = 80, .cols = 80, .rows = 30, .cell_w = 16, .cell_h = 32, .focused = true, .view = 1, .glyphs = false }, paint);
+ s.paint(.{ .cells = &cells, .stride = 80, .cols = 80, .rows = 30, .cell_w = 16, .cell_h = 32, .focused = true, .view = 1, .glyphs = false, .hit = .default, .hit_current = .default }, paint);
try std.testing.expect(capture.called);
try std.testing.expectEqualDeep(s, before);
}