flibitijibibo / SDL3-CS

Other
7 stars 0 forks source link

SDL_Event padding is generated incorrectly #4

Open flibitijibibo opened 9 hours ago

flibitijibibo commented 9 hours ago

Instead of generating a fixed byte[128] it generates 128 padding byte fields all at offset 0 - this was a fun native crash to diagnose!

cryy22 commented 1 minute ago

lmao sorryyy. resolved now; i just consolidated on using fixed-length buffers for all inline array fields wherever possible. my ide says fixed-length buffers aren't supported for non-primitive types so i still had to do the numbered fields thing for SDL_MessageBoxColorScheme.