Mercurial > dwindows
diff win/dw.c @ 1255:363d859e8372
Fixed GDI+ loading files with no extension needed. Fixed the *_from_data() functions.
Since the temporary file has no extension... it should try with no extension first.
Also updated the readme with the GDI+ support.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 24 Oct 2011 06:29:05 +0000 |
parents | 575663435272 |
children | 51892bf7fe01 |
line wrap: on
line diff
--- a/win/dw.c Mon Oct 24 05:34:12 2011 +0000 +++ b/win/dw.c Mon Oct 24 06:29:05 2011 +0000 @@ -374,9 +374,10 @@ * GDI+ List of supported formats: BMP, ICON, GIF, JPEG, Exif, PNG, TIFF, WMF, and EMF. * Not sure if we should include all these or not... maybe we should add TIFF and GIF? */ -#define NUM_EXTS 7 +#define NUM_EXTS 8 char *image_exts[NUM_EXTS] = { + "", ".png", ".ico", ".gif",