[GRASS-SVN] r38117 - in grass/trunk: display/d.colors include lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 29 15:00:14 EDT 2009


Author: martinl
Date: 2009-06-29 15:00:14 -0400 (Mon, 29 Jun 2009)
New Revision: 38117

Modified:
   grass/trunk/display/d.colors/interact.c
   grass/trunk/include/raster.h
   grass/trunk/lib/raster/color_shift.c
Log:
rasterlib: fns from color_shift.c renamed
http://trac.osgeo.org/grass/wiki/Grass7/RasterLib


Modified: grass/trunk/display/d.colors/interact.c
===================================================================
--- grass/trunk/display/d.colors/interact.c	2009-06-29 18:53:44 UTC (rev 38116)
+++ grass/trunk/display/d.colors/interact.c	2009-06-29 19:00:14 UTC (rev 38117)
@@ -206,7 +206,7 @@
 	    WRITE_STATUS;
 	    break;
 	case '+':
-	    Rast_shift_colors(1, colors);
+	    Rast_shift_c_colors(1, colors);
 	    if (hi_mode) {
 		cur_red = red_hi;
 		cur_grn = grn_hi;
@@ -218,7 +218,7 @@
 	    WRITE_STATUS;
 	    break;
 	case '-':
-	    Rast_shift_colors(-1, colors);
+	    Rast_shift_c_colors(-1, colors);
 	    if (hi_mode) {
 		cur_red = red_hi;
 		cur_grn = grn_hi;

Modified: grass/trunk/include/raster.h
===================================================================
--- grass/trunk/include/raster.h	2009-06-29 18:53:44 UTC (rev 38116)
+++ grass/trunk/include/raster.h	2009-06-29 19:00:14 UTC (rev 38117)
@@ -227,7 +227,7 @@
 void Rast_set_default_color(int, int, int, struct Colors *);
 
 /* color_shift.c */
-void Rast_shift_colors(int, struct Colors *);
+void Rast_shift_c_colors(CELL, struct Colors *);
 void Rast_shift_d_colors(DCELL, struct Colors *);
 
 /* color_write.c */

Modified: grass/trunk/lib/raster/color_shift.c
===================================================================
--- grass/trunk/lib/raster/color_shift.c	2009-06-29 18:53:44 UTC (rev 38116)
+++ grass/trunk/lib/raster/color_shift.c	2009-06-29 19:00:14 UTC (rev 38117)
@@ -1,5 +1,19 @@
+/*!
+ * \file raster/color_shift.c
+ *
+ * \brief Raster Library - Shift colors
+ *
+ * (C) 2001-2009 by the GRASS Development Team
+ *
+ * This program is free software under the GNU General Public License 
+ * (>=v2). Read the file COPYING that comes with GRASS for details.
+ *
+ * \author Original author CERL
+ */
+
 #include <grass/gis.h>
-void Rast_shift_colors(int shift, struct Colors *colors)
+
+void Rast_shift_c_colors(CELL shift, struct Colors *colors)
 {
     colors->shift += (DCELL) shift;
 }



More information about the grass-commit mailing list