Image bug-fix that caused crashes with the new GFILE/GWIN images.

ugfx_release_2.6
inmarket 2014-05-01 16:43:32 +10:00
parent df4d275183
commit 8f6c04e120
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void gdispImageClose(gdispImage *img) {
}
bool_t gdispImageIsOpen(gdispImage *img) {
return img->fns != 0;
return img->type != GDISP_IMAGE_TYPE_UNKNOWN && img->fns != 0;
}
void gdispImageSetBgColor(gdispImage *img, color_t bgcolor) {