[GRASS-SVN] r41027 - grass/trunk/raster/r.colors.out
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 15 05:54:08 EST 2010
Author: hamish
Date: 2010-02-15 05:54:07 -0500 (Mon, 15 Feb 2010)
New Revision: 41027
Modified:
grass/trunk/raster/r.colors.out/Makefile
grass/trunk/raster/r.colors.out/main.c
grass/trunk/raster/r.colors.out/r.colors.out.html
Log:
match modern r.colors rules format, svn props
Property changes on: grass/trunk/raster/r.colors.out/Makefile
___________________________________________________________________
Added: svn:mime-type
+ text/x-makefile
Modified: grass/trunk/raster/r.colors.out/main.c
===================================================================
--- grass/trunk/raster/r.colors.out/main.c 2010-02-15 10:22:55 UTC (rev 41026)
+++ grass/trunk/raster/r.colors.out/main.c 2010-02-15 10:54:07 UTC (rev 41027)
@@ -35,9 +35,9 @@
v0 = *val, r0 = r, g0 = g, b0 = b;
if (perc)
- fprintf(fp, "%g%% %d %d %d\n", 100 * (*val - min) / (max - min), r, g, b);
+ fprintf(fp, "%g%% %d:%d:%d\n", 100 * (*val - min) / (max - min), r, g, b);
else
- fprintf(fp, "%g %d %d %d\n", *val, r, g, b);
+ fprintf(fp, "%g %d:%d:%d\n", *val, r, g, b);
}
int main(int argc, char **argv)
@@ -131,9 +131,9 @@
{
int r, g, b;
Rast_get_null_value_color(&r, &g, &b, &colors);
- fprintf(fp, "nv %d %d %d\n", r, g, b);
+ fprintf(fp, "nv %d:%d:%d\n", r, g, b);
Rast_get_default_color(&r, &g, &b, &colors);
- fprintf(fp, "default %d %d %d\n", r, g, b);
+ fprintf(fp, "default %d:%d:%d\n", r, g, b);
}
Property changes on: grass/trunk/raster/r.colors.out/main.c
___________________________________________________________________
Added: svn:mime-type
+ text/x-csrc
Modified: grass/trunk/raster/r.colors.out/r.colors.out.html
===================================================================
--- grass/trunk/raster/r.colors.out/r.colors.out.html 2010-02-15 10:22:55 UTC (rev 41026)
+++ grass/trunk/raster/r.colors.out/r.colors.out.html 2010-02-15 10:54:07 UTC (rev 41027)
@@ -15,4 +15,4 @@
Glynn Clements
<p>
-<i>Last changed: $Date: 2008-08-15 07:16:42 +0100 (Fri, 15 Aug 2008) $</i>
+<i>Last changed: $Date$</i>
Property changes on: grass/trunk/raster/r.colors.out/r.colors.out.html
___________________________________________________________________
Added: svn:mime-type
+ text/html
Added: svn:keywords
+ Author Date Id
More information about the grass-commit
mailing list