src/events/SDL_windowevents.c
changeset 5276 8e421890cdb8
parent 5262 b530ef003506
child 5383 40c76519000e
equal deleted inserted replaced
5275:bad04e4710f6 5276:8e421890cdb8
    33 RemovePendingSizeEvents(void * userdata, SDL_Event *event)
    33 RemovePendingSizeEvents(void * userdata, SDL_Event *event)
    34 {
    34 {
    35     SDL_Event *new_event = (SDL_Event *)userdata;
    35     SDL_Event *new_event = (SDL_Event *)userdata;
    36 
    36 
    37     if (event->type == SDL_WINDOWEVENT &&
    37     if (event->type == SDL_WINDOWEVENT &&
    38         event->window.event == SDL_WINDOWEVENT_RESIZED &&
    38         (event->window.event == SDL_WINDOWEVENT_RESIZED ||
       
    39          event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) &&
    39         event->window.windowID == new_event->window.windowID) {
    40         event->window.windowID == new_event->window.windowID) {
    40         /* We're about to post a new size event, drop the old one */
    41         /* We're about to post a new size event, drop the old one */
    41         return 0;
    42         return 0;
    42     }
    43     }
    43     return 1;
    44     return 1;