summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 04:25:31 -0300
committerGabriel Schneider <[email protected]>2026-11-18 04:59:44 -0300
commit22b5ada4c099618e72af3d33dc274a7c272dd227 (patch)
treee43ac3087fc0e364e4fb67d46fa025c059c8b0af /src/gui
parent0045636495bf2baf77c8b0eb63e45feeffa016ac (diff)
parent2fe27b36239c4702847f0565e5226c0a45d89c2f (diff)
downloadpardes-22b5ada4c099618e72af3d33dc274a7c272dd227.tar.gz
pardes-22b5ada4c099618e72af3d33dc274a7c272dd227.zip
integration: the startup line (how pardes runs, the words, addons in a client, the four startup changes) with the window on sketchbook's Present.Options, against sketchbook's reorg with its steps 1 to 7: one conflict, gui.zig's Present.init call (the options form, the window opaque at its start as the startup change made it); gui frame corpus 77/77 Debug and ReleaseFast against mbase, the perf window -0.200% (threshold 0.5%), unit-test 1582/1590 (the four addon ABI tests the base fails; its perf check refuses the baseline by name, BaselineBuildMismatch: these gates build with Zig 0.17.0 and the baseline was recorded with 0.17.1, and run by hand against it every gesture on medium is within 1.26x, limit 3x); tui core-test 819/958 (139 skipped), shell-test 993/996
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index 4eaf7860..65e3088c 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -880,7 +880,12 @@ fn runNative(init: std.process.Init, opts_in: pardes.Options, detached: bool, di
if (arrow_cursor) |cur| {
_ = c.SDL_SetCursor(cur);
} else log.err("SDL_CreateCursor: {s}", .{c.SDL_GetError()});
- var presenter = try Present.init(window, test_mode, false);
+ var presenter = try Present.init(window, .{
+ .test_mode = test_mode,
+ .surface_opacity = false,
+ .present_modes = &.{ c.SDL_GPU_PRESENTMODE_IMMEDIATE, c.SDL_GPU_PRESENTMODE_MAILBOX, c.SDL_GPU_PRESENTMODE_VSYNC },
+ .debug = true,
+ });
defer presenter.deinit();
font_allocator = gpa;