diff options
| author | s-ol <s+removethis@s-ol.nu> | 2026-01-10 16:04:23 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2026-01-10 16:04:23 +0000 |
| commit | 730af794d3fcb1f59024aa0861f6803135d3f274 (patch) | |
| tree | 6fbcafa2c44c6eec82619716d8949e103b4a3f6f /src | |
| parent | StreamSource: synchronize playback with frame presentation data (diff) | |
| download | glsl-view-730af794d3fcb1f59024aa0861f6803135d3f274.tar.gz glsl-view-730af794d3fcb1f59024aa0861f6803135d3f274.zip | |
n outputs
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/config.zig b/src/config.zig index ba46ef7..f1410d4 100644 --- a/src/config.zig +++ b/src/config.zig @@ -55,13 +55,13 @@ pub const Config = struct { } if (config.outputs.len == 0) { - const outputs = try allocator.alloc(OutputConfig, 1); - outputs[0] = .{ .window = .default }; - outputs[0].window.width = config.width; - outputs[0].window.height = config.height; - // outputs[1] = .{ .window = .default }; - // outputs[1].window.width = config.width; - // outputs[1].window.height = config.height; + const num = 1; + const outputs = try allocator.alloc(OutputConfig, num); + for (0..num) |i| { + outputs[i] = .{ .window = .default }; + outputs[i].window.width = config.width; + outputs[i].window.height = config.height; + } config.outputs = outputs; } |
