[GRASS-SVN] r41214 - grass/branches/develbranch_6/raster/r.out.png
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 28 02:10:52 EST 2010
Author: hamish
Date: 2010-02-28 02:10:50 -0500 (Sun, 28 Feb 2010)
New Revision: 41214
Modified:
grass/branches/develbranch_6/raster/r.out.png/r.out.png.c
Log:
put png_set_background() in the right place
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-02-28 05:44:45 UTC (rev 41213)
+++ grass/branches/develbranch_6/raster/r.out.png/r.out.png.c 2010-02-28 07:10:50 UTC (rev 41214)
@@ -194,8 +194,6 @@
ret = G_str_to_color(DEFAULT_BG_COLOR, &def_red, &def_grn, &def_blu);
#endif
-/* png_set_background() */
-
/*G_get_set_window (&w); *//* 10/99 MN: check for current region */
G_get_window(&w);
@@ -269,6 +267,11 @@
png_set_compression_level(png_ptr, png_compr);
+/* FIXME: this should be set
+ if(do_alpha)
+ png_set_background(png_structp png_ptr, png_color_16p background_color,
+ int background_gamma_code, int need_expand, double background_gamma);
+*/
G_verbose_message(_("Converting <%s>..."), rast->answer);
More information about the grass-commit
mailing list