Hello all,
GIMP (2.6.8) seems to save 32-bit BMP in the "Windows 3.0 + (v3)"
format mentioned in evas_image_load_bmp.c.
I'm not sure if the patch breaks anything (or images created by other
tools). Please correct it if you see fit.
This patch should enable support for ARGB BMP files for evas. It's
tested on my x86 box.
Cheers,
brian
--
brian
------------------
Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/
iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe
Index: evas/src/modules/loaders/bmp/evas_image_load_bmp.c
===================================================================
--- evas/src/modules/loaders/bmp/evas_image_load_bmp.c (revision 50247)
+++ evas/src/modules/loaders/bmp/evas_image_load_bmp.c (working copy)
@@ -148,6 +148,7 @@
if (!read_int(f, &tmp2)) goto close_file;
important_colors = tmp2; // number of important colors - 0 if all
if (image_size == 0) image_size = fsize - offset;
+ if (bit_count == 32) hasa = 1; // GIMP seems to store it this way
}
else if (head_size == 108) // Windows 95/NT4 + (v4)
{
@@ -423,6 +424,7 @@
if (!read_int(f, &tmp2)) goto close_file;
important_colors = tmp2; // number of important colors - 0 if all
if (image_size == 0) image_size = fsize - offset;
+ if (bit_count == 32) hasa = 1; // GIMP seems to store it this way
}
else if (head_size == 108) // Windows 95/NT4 + (v4)
{
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel