Mercurial > sdl-ios-xcode
comparison src/events/SDL_windowevents.c @ 5150:ad50b3db78bd
The rendering functions take a context so it's clear what window they're drawing to. This also potentially opens to the door to multi-threaded rendering in the future.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Feb 2011 19:19:43 -0800 |
parents | 686d795b1b29 |
children | 4d39eeaad00b |
comparison
equal
deleted
inserted
replaced
5149:3052772b59db | 5150:ad50b3db78bd |
---|---|
104 if (data1 == window->w && data2 == window->h) { | 104 if (data1 == window->w && data2 == window->h) { |
105 return 0; | 105 return 0; |
106 } | 106 } |
107 window->w = data1; | 107 window->w = data1; |
108 window->h = data2; | 108 window->h = data2; |
109 SDL_OnWindowResized(window); | |
110 break; | 109 break; |
111 case SDL_WINDOWEVENT_MINIMIZED: | 110 case SDL_WINDOWEVENT_MINIMIZED: |
112 if (window->flags & SDL_WINDOW_MINIMIZED) { | 111 if (window->flags & SDL_WINDOW_MINIMIZED) { |
113 return 0; | 112 return 0; |
114 } | 113 } |