Skip to content

Commit

Permalink
Emit love.visible(true) on SDL_WINDOWEVENT_EXPOSED
Browse files Browse the repository at this point in the history
  • Loading branch information
doesntgolf committed Jan 9, 2024
1 parent 0df51cf commit 70e18e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/event/sdl/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ Message *Event::convertWindowEvent(const SDL_Event &e)
break;
case SDL_WINDOWEVENT_SHOWN:
case SDL_WINDOWEVENT_HIDDEN:
vargs.emplace_back(e.window.event == SDL_WINDOWEVENT_SHOWN);
case SDL_WINDOWEVENT_EXPOSED:
vargs.emplace_back(e.window.event != SDL_WINDOWEVENT_SHOWN);
msg = new Message("visible", vargs);
break;
case SDL_WINDOWEVENT_RESIZED:
Expand Down

0 comments on commit 70e18e0

Please sign in to comment.