mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-21 14:47:04 +01:00
fixed broken loading gif images
This commit is contained in:
1 parent
3af4aa7846
commit
a1d78d102a
1 file changed
+1
-1
+1
-1
@@ -78,7 +78,7 @@ RLoadGIF(RContext *context, char *file, int index)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gif->Image.Width<1 || gif->Image.Height<1) {
|
if (gif->SWidth<1 || gif->SHeight<1) {
|
||||||
DGifCloseFile(gif);
|
DGifCloseFile(gif);
|
||||||
RErrorCode = RERR_BADIMAGEFILE;
|
RErrorCode = RERR_BADIMAGEFILE;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in new issue
Block a user