mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
Converted #define into an Enum for image format number
An enum is always a better idea as it allows the compiler to do some checks, and as this info is internal only to the WRLib it will not change the API.
This commit is contained in:
committed by
Carlos R. Mafra
parent
268ead4eca
commit
225c99a6ca
@@ -68,7 +68,7 @@ static int RImageCacheMaxImage = -1; /* 0 = any size */
|
||||
static RCachedImage *RImageCache;
|
||||
|
||||
|
||||
static int identFile(char *path);
|
||||
static WRImgFormat identFile(char *path);
|
||||
|
||||
|
||||
char **RSupportedFileFormats(void)
|
||||
@@ -272,7 +272,7 @@ char *RGetImageFileFormat(char *file)
|
||||
}
|
||||
}
|
||||
|
||||
static int identFile(char *path)
|
||||
static WRImgFormat identFile(char *path)
|
||||
{
|
||||
FILE *file;
|
||||
unsigned char buffer[32];
|
||||
|
||||
Reference in New Issue
Block a user