mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
fixed broken loading gif images
This commit is contained in:
@@ -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