mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-21 09:36:24 +00:00
Renamed SDL events for clarity
Fixes https://github.com/libsdl-org/SDL/issues/6877
This commit is contained in:
@@ -1125,7 +1125,7 @@ int main(int argc, char **argv)
|
||||
/* Need to destroy the swapchain before the window created
|
||||
* by SDL.
|
||||
*/
|
||||
if (event.type == SDL_WINDOWEVENT_CLOSE) {
|
||||
if (event.type == SDL_EVENT_WINDOW_CLOSE_REQUESTED) {
|
||||
destroySwapchainAndSwapchainSpecificStuff(SDL_TRUE);
|
||||
}
|
||||
SDLTest_CommonEvent(state, &event, &done);
|
||||
|
||||
Reference in New Issue
Block a user