comparison 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
comparison
equal deleted inserted replaced
1587:7fd9fc1f2be5 1588:e20dcef5647c
1080 1080
1081 void DirectFB_VideoQuit(_THIS) 1081 void DirectFB_VideoQuit(_THIS)
1082 { 1082 {
1083 struct DirectFBEnumRect *rect = enumlist; 1083 struct DirectFBEnumRect *rect = enumlist;
1084 1084
1085 if (this->screen->hwdata) 1085 if (this->screen && this->screen->hwdata)
1086 { 1086 {
1087 IDirectFBSurface *surface = this->screen->hwdata->surface; 1087 IDirectFBSurface *surface = this->screen->hwdata->surface;
1088 IDirectFBPalette *palette = this->screen->hwdata->palette; 1088 IDirectFBPalette *palette = this->screen->hwdata->palette;
1089 1089
1090 if (palette) 1090 if (palette)