Skip to content

Commit

Permalink
modify SDL_Event declaration for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelFB committed Feb 11, 2024
1 parent 41a2032 commit d545f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Platform/src/foster_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ FosterBool FosterPollEvents(FosterEvent* output)
{
FOSTER_ASSERT_RUNNING_RET(FosterPollEvents, 0);

SDL_Event event;
*output = (FosterEvent){ 0 };
output->eventType = FOSTER_EVENT_TYPE_NONE;

Expand All @@ -184,7 +185,6 @@ FosterBool FosterPollEvents(FosterEvent* output)

// get next SDL event, or return false if no more found
NEXT_EVENT:
SDL_Event event;
if (!SDL_PollEvent(&event))
{
fstate.polledMouseMovement = 0;
Expand Down

0 comments on commit d545f39

Please sign in to comment.