summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:38:55 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit66f032821a0a7bebe08e852db170e0f282a02f48 (patch)
tree952517cfe022850ff9aacb92002fa099e165b80a /src/macos.zig
parenta9490f3d11e2ad19bb53f994fe506e1c2e094d96 (diff)
downloadpardes-66f032821a0a7bebe08e852db170e0f282a02f48.tar.gz
pardes-66f032821a0a7bebe08e852db170e0f282a02f48.zip
idioms #7, a @hasField that always held: macos.zig's resize gives cell_pixels its w and h outright, as CellPixels has had both since Event.zig made it
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/macos.zig b/src/macos.zig
index 3fa018c0..7b996ca3 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -1618,10 +1618,7 @@ export fn pardes_resize(cols_arg: u16, rows_arg: u16, cell_w: u16, cell_h: u16)
st.core.update(.{ .resize = .{
.cols = cols,
.rows = rows,
- .cell_pixels = if (@hasField(pardes.CellPixels, "w"))
- .{ .w = @max(1, cell_w), .h = @max(1, cell_h) }
- else
- .{},
+ .cell_pixels = .{ .w = @max(1, cell_w), .h = @max(1, cell_h) },
} });
}