Mercurial > sdl-ios-xcode
changeset 333:f2ba51f64d49
Fixed a crash bug in the WM_ACTIVATE code (thanks John!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 09 Apr 2002 23:32:40 +0000 |
parents | 3d6dd1b7b7ba |
children | f65715bd8ad8 |
files | src/video/wincommon/SDL_sysevents.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c Mon Apr 08 17:50:30 2002 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Tue Apr 09 23:32:40 2002 +0000 @@ -190,6 +190,10 @@ BOOL minimized; Uint8 appstate; + if ( ! this->screen ) { + /* What do we do when we get the screen? */ + return(0); + } minimized = HIWORD(wParam); if ( !minimized && (LOWORD(wParam) != WA_INACTIVE) ) { /* Gain the following states */