Add padding for non-32-bit-aligned types in structs (#10701)

This commit is contained in:
Evan Hemsley
2024-09-05 09:52:57 -07:00
committed by GitHub
parent 387774ab8a
commit 42a0df91bf
2 changed files with 33 additions and 2 deletions

View File

@@ -381,6 +381,9 @@ typedef struct SDL_TextEditingCandidatesEvent
Sint32 num_candidates; /**< The number of strings in `candidates` */
Sint32 selected_candidate; /**< The index of the selected candidate, or -1 if no candidate is selected */
SDL_bool horizontal; /**< SDL_TRUE if the list is horizontal, SDL_FALSE if it's vertical */
Uint8 padding1;
Uint8 padding2;
Uint8 padding3;
} SDL_TextEditingCandidatesEvent;
/**