ok.. a dfb bug.. i have to safeguard...

SVN revision: 6533
This commit is contained in:
Carsten Haitzler 2002-12-30 02:04:44 +00:00
parent b77e71b077
commit 6bdb5980a0
1 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,15 @@ evas_engine_directfb_image_load(void *data, char *file, char *key, int *error)
/* Image is not in cache or not already used -> create it */
re->dfb->CreateImageProvider(re->dfb, file, &provider);
if (!provider) return NULL;
/* Ok DirectFB you have a BUG with loading... "" files. this is a */
/* work-around to double-check in case DirectFB screws up.. but I need to */
/* fix this in DirectFB anyway. */
if ((!provider->GetSurfaceDescription) ||
(!provider->GetImageDescription))
{
provider->Release(provider);
return NULL;
}
provider->GetSurfaceDescription(provider, &dsc);
provider->GetImageDescription(provider, &img_desc);