Skip to content

Commit 5ca93a2

Browse files
committed
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
1 parent b080476 commit 5ca93a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdl3.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ pub const Event = extern union {
17711771
render: RenderEvent,
17721772
drop: DropEvent,
17731773
clipboard: ClipboardEvent,
1774-
_: u128, // padding
1774+
_: [128]u8, // padding
17751775
};
17761776

17771777
/// Pump the event loop, gathering events from the input devices.

0 commit comments

Comments
 (0)