mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
wrlib: Improved NETPBM support
- re-add PPM to the list of supported format, because legacy apps may expect to find it from the list; - add the copyright notice related to the code that have been borrowed from Netpbm; - fixed a small error in PPM format check in the loading procedure; - and a few minor code improvements Signed-off-by: Christophe CURIS <christophe.curis@free.fr> Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
051a30f550
commit
34ca63c59f
@@ -73,13 +73,19 @@ static WRImgFormat identFile(const char *path);
|
||||
|
||||
char **RSupportedFileFormats(void)
|
||||
{
|
||||
static char *tmp[IM_TYPES + 1];
|
||||
static char *tmp[IM_TYPES + 2];
|
||||
int i = 0;
|
||||
|
||||
/* built-in */
|
||||
tmp[i++] = "XPM";
|
||||
/* built-in PNM here refers to anymap format: PPM, PGM, PBM */
|
||||
tmp[i++] = "PNM";
|
||||
/*
|
||||
* PPM is a just a sub-type of PNM, but it has to be in the list
|
||||
* for compatibility with legacy programs that may expect it but
|
||||
* not the new PNM type
|
||||
*/
|
||||
tmp[i++] = "PPM";
|
||||
#ifdef USE_TIFF
|
||||
tmp[i++] = "TIFF";
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user