summaryrefslogtreecommitdiff
path: root/gui/src/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 12:26:18 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:31:06 -0300
commit718f8af70c31a4f826ea442ba7b7b0fe4c106d5b (patch)
treef7a1c1fbab9120835f24676e11fd96589703032d /gui/src/main.zig
parentb7a023dd5d08bf152258972118ab2348cf8c8e0d (diff)
downloadcomputeranim-718f8af70c31a4f826ea442ba7b7b0fe4c106d5b.tar.gz
computeranim-718f8af70c31a4f826ea442ba7b7b0fe4c106d5b.zip
debugger: build its host against sketchbook's sketch(App, Build)HEADmain
sketchbook's sketch() also takes what the build knows of the app now: the source revision, and whether its save keeps a history of sessions. The debugger has its own main, so it passes the defaults: no revision and no history. Its save keeps the present only, as the old state file did. Verified zig build test -Doptimize=ReleaseFast in gui: 85/85 steps, 4/4 tests, the four scripted GUI checks passed headless. A Debug build fails adaptive.py at 800x700 and 200%, in canim's rows.chain: a clamp whose lower bound is above its upper. That bug does not come from the library.
Diffstat (limited to 'gui/src/main.zig')
-rw-r--r--gui/src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/main.zig b/gui/src/main.zig
index 91a2ddf..8b8a72f 100644
--- a/gui/src/main.zig
+++ b/gui/src/main.zig
@@ -5,5 +5,5 @@ pub fn main(init: std.process.Init) !void {
app.io = init.io;
app.gpa = init.gpa;
defer app.close();
- try @import("host").main(init, @import("sketch").sketch(app));
+ try @import("host").main(init, @import("sketch").sketch(app, .{}));
}