[GRASS-SVN] r41256 - grass/branches/develbranch_6/raster/r.out.png
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 1 16:33:33 EST 2010
Author: hamish
Date: 2010-03-01 16:33:33 -0500 (Mon, 01 Mar 2010)
New Revision: 41256
Modified:
grass/branches/develbranch_6/raster/r.out.png/r.out.png.c
Log:
fix background transparency (thanks Glynn) trac #967
Modified: grass/branches/develbranch_6/raster/r.out.png/r.out.png.c
===================================================================
--- grass/branches/develbranch_6/raster/r.out.png/r.out.png.c 2010-03-01 14:51:40 UTC (rev 41255)
+++ grass/branches/develbranch_6/raster/r.out.png/r.out.png.c 2010-03-01 21:33:33 UTC (rev 41256)
@@ -267,15 +267,13 @@
png_set_compression_level(png_ptr, png_compr);
-/* FIXME
if(do_alpha) {
- png_color_16p background_color;
- background_color->red = (png_uint_16)def_red;
- background_color->green = (png_uint_16)def_grn;
- background_color->blue = (png_uint_16)def_blu;
- png_set_bKGD(png_ptr, info_ptr, background_color);
+ png_color_16 background_color;
+ background_color.red = (png_uint_16)def_red;
+ background_color.green = (png_uint_16)def_grn;
+ background_color.blue = (png_uint_16)def_blu;
+ png_set_bKGD(png_ptr, info_ptr, &background_color);
}
-*/
G_verbose_message(_("Converting <%s>..."), rast->answer);
More information about the grass-commit
mailing list