comparison src/events/SDL_windowevents.c @ 2849:523b10db69f8

There's no reason to add extra code to notify the mice of window size changes. Just query the window size when we care about it. :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 Dec 2008 21:53:28 +0000
parents f7872b7a8732
children 99210400e8b9
comparison
equal deleted inserted replaced
2848:8a3aa505ecba 2849:523b10db69f8
72 return 0; 72 return 0;
73 } 73 }
74 window->w = data1; 74 window->w = data1;
75 window->h = data2; 75 window->h = data2;
76 SDL_OnWindowResized(window); 76 SDL_OnWindowResized(window);
77 SDL_SetMouseFocusSize(windowID, window->w, window->h);
78 break; 77 break;
79 case SDL_WINDOWEVENT_MINIMIZED: 78 case SDL_WINDOWEVENT_MINIMIZED:
80 if (window->flags & SDL_WINDOW_MINIMIZED) { 79 if (window->flags & SDL_WINDOW_MINIMIZED) {
81 return 0; 80 return 0;
82 } 81 }