terminal,renderer: convert structs to extern

Convert Coordinate in terminal/point.zig and CellSize, ScreenSize,
GridSize, and Padding in renderer/size.zig to extern structs. All
fields are already extern-compatible types, so this gives them a
guaranteed C ABI layout with no functional change.
This commit is contained in:
Mitchell Hashimoto
2026-03-15 19:38:09 -07:00
parent 37efac99b0
commit 79e023b65e
3 changed files with 6 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ pub const Event = struct {
pos: Pos = .{},
/// Mouse position in surface-space pixels.
pub const Pos = struct {
pub const Pos = extern struct {
x: f32 = 0,
y: f32 = 0,
};