equal
deleted
inserted
replaced
188 case WM_ACTIVATE: { |
188 case WM_ACTIVATE: { |
189 SDL_VideoDevice *this = current_video; |
189 SDL_VideoDevice *this = current_video; |
190 BOOL minimized; |
190 BOOL minimized; |
191 Uint8 appstate; |
191 Uint8 appstate; |
192 |
192 |
|
193 if ( ! this->screen ) { |
|
194 /* What do we do when we get the screen? */ |
|
195 return(0); |
|
196 } |
193 minimized = HIWORD(wParam); |
197 minimized = HIWORD(wParam); |
194 if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) { |
198 if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) { |
195 /* Gain the following states */ |
199 /* Gain the following states */ |
196 appstate = SDL_APPACTIVE|SDL_APPINPUTFOCUS; |
200 appstate = SDL_APPACTIVE|SDL_APPINPUTFOCUS; |
197 if ( this->input_grab != SDL_GRAB_OFF ) { |
201 if ( this->input_grab != SDL_GRAB_OFF ) { |