src/events/SDL_dropevents.c
changeset 6103 cf49f013f184
parent 6091 61fa4f3238c5
child 6138 4c64952a58fb
equal deleted inserted replaced
6102:bf7254ec1bf9 6103:cf49f013f184
    35     /* Post the event, if desired */
    35     /* Post the event, if desired */
    36     posted = 0;
    36     posted = 0;
    37     if (SDL_GetEventState(SDL_DROPFILE) == SDL_ENABLE) {
    37     if (SDL_GetEventState(SDL_DROPFILE) == SDL_ENABLE) {
    38         SDL_Event event;
    38         SDL_Event event;
    39         event.type = SDL_DROPFILE;
    39         event.type = SDL_DROPFILE;
    40 	event.drop.file = SDL_strdup(file);
    40         event.drop.file = SDL_strdup(file);
    41 
       
    42         posted = (SDL_PushEvent(&event) > 0);
    41         posted = (SDL_PushEvent(&event) > 0);
    43     }
    42     }
    44     return (posted);
    43     return (posted);
    45 }
    44 }
    46 
    45