Correct issue with IMB_ispic returning bool

This commit is contained in:
Campbell Barton
2014-04-30 10:43:46 +10:00
parent 32e02302a7
commit 863352dfdc
2 changed files with 7 additions and 2 deletions

View File

@@ -355,6 +355,7 @@ short IMB_saveiff(struct ImBuf *ibuf, const char *filepath, int flags);
* \attention Defined in util.c
*/
bool IMB_ispic(const char *name);
int IMB_ispic_type(const char *name);
/**
*

View File

@@ -183,7 +183,7 @@ const char *imb_ext_audio[] = {
NULL
};
bool IMB_ispic(const char *name)
int IMB_ispic_type(const char *name)
{
/* increased from 32 to 64 because of the bitmaps header size */
#define HEADER_SIZE 64
@@ -228,11 +228,15 @@ bool IMB_ispic(const char *name)
}
}
return false;
return 0;
#undef HEADER_SIZE
}
bool IMB_ispic(const char *name)
{
return (IMB_ispic_type(name) != 0);
}
static int isavi(const char *name)
{