Image bug-fix that caused crashes with the new GFILE/GWIN images.
This commit is contained in:
parent
df4d275183
commit
8f6c04e120
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ void gdispImageClose(gdispImage *img) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool_t gdispImageIsOpen(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) {
|
void gdispImageSetBgColor(gdispImage *img, color_t bgcolor) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue