diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-01 16:43:32 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-01 16:43:32 +1000 |
commit | 8f6c04e12027c88ad8e8d31cc5d29806dd0424ba (patch) | |
tree | 118975bb257bd4628180471ffd4afae501fd3376 | |
parent | df4d2751831d12c081b5aa5ce830d98687db7b42 (diff) | |
download | uGFX-8f6c04e12027c88ad8e8d31cc5d29806dd0424ba.tar.gz uGFX-8f6c04e12027c88ad8e8d31cc5d29806dd0424ba.tar.bz2 uGFX-8f6c04e12027c88ad8e8d31cc5d29806dd0424ba.zip |
Image bug-fix that caused crashes with the new GFILE/GWIN images.
-rw-r--r-- | src/gdisp/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdisp/image.c b/src/gdisp/image.c index 2b8395b0..5a743905 100644 --- a/src/gdisp/image.c +++ b/src/gdisp/image.c @@ -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) { |