src/events/SDL_resize.c
branchSDL-1.2
changeset 4249 429c8dd3175d
parent 4159 a1b03ba2fcd0
child 6124 f56b95794ac8
equal deleted inserted replaced
4248:a9c6e65c1416 4249:429c8dd3175d
    52         last_resize.h = h;
    52         last_resize.h = h;
    53 	if ( ! SDL_VideoSurface ||
    53 	if ( ! SDL_VideoSurface ||
    54 	     ((w == SDL_VideoSurface->w) && (h == SDL_VideoSurface->h)) ) {
    54 	     ((w == SDL_VideoSurface->w) && (h == SDL_VideoSurface->h)) ) {
    55 		return(0);
    55 		return(0);
    56 	}
    56 	}
       
    57 	SDL_SetMouseRange(w, h);
    57 
    58 
    58 	/* Pull out all old resize events */
    59 	/* Pull out all old resize events */
    59 	SDL_PeepEvents(events, sizeof(events)/sizeof(events[0]),
    60 	SDL_PeepEvents(events, sizeof(events)/sizeof(events[0]),
    60 	                    SDL_GETEVENT, SDL_VIDEORESIZEMASK);
    61 	                    SDL_GETEVENT, SDL_VIDEORESIZEMASK);
    61 
    62