[GRASS-SVN] r41257 - grass/trunk/raster/r.out.png
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 1 21:25:17 EST 2010
Author: hamish
Date: 2010-03-01 21:25:16 -0500 (Mon, 01 Mar 2010)
New Revision: 41257
Modified:
grass/trunk/raster/r.out.png/main.c
Log:
fix background transparency (merge from devbr6; thanks Glynn) trac #967
Modified: grass/trunk/raster/r.out.png/main.c
===================================================================
--- grass/trunk/raster/r.out.png/main.c 2010-03-01 21:33:33 UTC (rev 41256)
+++ grass/trunk/raster/r.out.png/main.c 2010-03-02 02:25:16 UTC (rev 41257)
@@ -239,15 +239,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