equal
deleted
inserted
replaced
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 |