diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 20:13:31 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 20:21:27 -0300 |
| commit | 2fe27b36239c4702847f0565e5226c0a45d89c2f (patch) | |
| tree | a031dc2063b5dc15b1e700930e3f952105316eee | |
| parent | 65a8bce7a44932534b8eec088ab45d6875c138b2 (diff) | |
| download | pardes-2fe27b36239c4702847f0565e5226c0a45d89c2f.tar.gz pardes-2fe27b36239c4702847f0565e5226c0a45d89c2f.zip | |
gui: Present.init takes sketchbook's Present.Options: the present modes and the debug flag pardes always had, as values (IMMEDIATE, MAILBOX, VSYNC; debug on), beside test mode and the transparent window; frame corpus 77/77 byte-identical in Debug; unit-test gui 1578/1590 under a load of 13, the four extra failures host_io's tty tests (a nested shell, a foreground job, Kill), which pass alone (shell-test tui -Dtest-filter=host_io 55/55) and compile no sketchbook
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| -rw-r--r-- | src/gui/gui.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index f78678c0..fb9834cc 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -873,7 +873,12 @@ fn runNative(init: std.process.Init, opts_in: pardes.Options, headless: 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, surface_opacity); + var presenter = try Present.init(window, .{ + .test_mode = test_mode, + .surface_opacity = surface_opacity, + .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; |
