Mercurial > dwindows
changeset 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 | 8ac9fc1ed779 |
children | 51892bf7fe01 |
files | readme win/dw.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/readme Mon Oct 24 05:34:12 2011 +0000 +++ b/readme Mon Oct 24 06:29:05 2011 +0000 @@ -54,6 +54,7 @@ Added dw_container_set_row_bg() to set alternating row colors. Currently Mac, Win and GTK are supported. Added taskbar support on the Mac, GTK (Gnome) and OS/2 (e/XCenter+Systray). +Added PNG/JPG/GIF/TIFF support on Windows via GDI+. Improved container optimization on Mac, header width now taken into account. Fixes for incorrect return codes from the dw_event_* functions on Windows. Fixes for incorrect behavior on key_press callbacks on Mac and Windows.
--- 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",