Mercurial > sdl-ios-xcode
diff src/video/qnxgf/SDL_gf_input.c @ 3124:d7174e9f65ce
More checks for current GF state were added.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Thu, 14 May 2009 11:51:42 +0000 |
parents | 7b3a09fb9c8b |
children | 7f684f249ec9 |
line wrap: on
line diff
--- a/src/video/qnxgf/SDL_gf_input.c Thu May 14 11:50:05 2009 +0000 +++ b/src/video/qnxgf/SDL_gf_input.c Thu May 14 11:51:42 2009 +0000 @@ -262,6 +262,10 @@ { mdata=(SDL_MouseData*)cursor->mouse->driverdata; didata=(SDL_DisplayData*)mdata->didata; + if ((didata==NULL) || (mdata==NULL)) + { + return; + } } else { @@ -405,6 +409,10 @@ if (window_id<=0) { didata=(SDL_DisplayData*)cursor->mouse->driverdata; + if (didata==NULL) + { + return; + } } else {