Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_video.c @ 1588:e20dcef5647c
Improved DirectFB install detection
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 22 Mar 2006 09:18:10 +0000 |
parents | d910939febfa |
children | 14717b52abc0 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_video.c Wed Mar 22 09:13:10 2006 +0000 +++ b/src/video/directfb/SDL_DirectFB_video.c Wed Mar 22 09:18:10 2006 +0000 @@ -1082,7 +1082,7 @@ { struct DirectFBEnumRect *rect = enumlist; - if (this->screen->hwdata) + if (this->screen && this->screen->hwdata) { IDirectFBSurface *surface = this->screen->hwdata->surface; IDirectFBPalette *palette = this->screen->hwdata->palette;