From 5ca93a2d31e6fd0e3378a23d233f557efcc4af1b Mon Sep 17 00:00:00 2001 From: Kent Smith Date: Sun, 30 Mar 2025 17:50:13 -0700 Subject: [PATCH] Fix padding size in Event According to SDL_events.h, the SDL_Event union has 128 bytes of padding, but our Event has 128 bits. https://github.com/libsdl-org/SDL/blob/8eb57c5a420426f7b6d96f9c6afd0777c6137be6/include/SDL3/SDL_events.h#L1040 --- src/sdl3.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl3.zig b/src/sdl3.zig index d30e395..7e8e07f 100644 --- a/src/sdl3.zig +++ b/src/sdl3.zig @@ -1771,7 +1771,7 @@ pub const Event = extern union { render: RenderEvent, drop: DropEvent, clipboard: ClipboardEvent, - _: u128, // padding + _: [128]u8, // padding }; /// Pump the event loop, gathering events from the input devices.