Просмотр исходного кода

rasterlib: fns from color_shift.c renamed
http://trac.osgeo.org/grass/wiki/Grass7/RasterLib


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38117 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 лет назад
Родитель
Сommit
625a5beb55
3 измененных файлов с 18 добавлено и 4 удалено
  1. 2 2
      display/d.colors/interact.c
  2. 1 1
      include/raster.h
  3. 15 1
      lib/raster/color_shift.c

+ 2 - 2
display/d.colors/interact.c

@@ -206,7 +206,7 @@ interact(struct Categories *categories, struct Colors *colors, char *name,
 	    WRITE_STATUS;
 	    WRITE_STATUS;
 	    break;
 	    break;
 	case '+':
 	case '+':
-	    Rast_shift_colors(1, colors);
+	    Rast_shift_c_colors(1, colors);
 	    if (hi_mode) {
 	    if (hi_mode) {
 		cur_red = red_hi;
 		cur_red = red_hi;
 		cur_grn = grn_hi;
 		cur_grn = grn_hi;
@@ -218,7 +218,7 @@ interact(struct Categories *categories, struct Colors *colors, char *name,
 	    WRITE_STATUS;
 	    WRITE_STATUS;
 	    break;
 	    break;
 	case '-':
 	case '-':
-	    Rast_shift_colors(-1, colors);
+	    Rast_shift_c_colors(-1, colors);
 	    if (hi_mode) {
 	    if (hi_mode) {
 		cur_red = red_hi;
 		cur_red = red_hi;
 		cur_grn = grn_hi;
 		cur_grn = grn_hi;

+ 1 - 1
include/raster.h

@@ -227,7 +227,7 @@ void Rast_set_null_value_color(int, int, int, struct Colors *);
 void Rast_set_default_color(int, int, int, struct Colors *);
 void Rast_set_default_color(int, int, int, struct Colors *);
 
 
 /* color_shift.c */
 /* 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 *);
 void Rast_shift_d_colors(DCELL, struct Colors *);
 
 
 /* color_write.c */
 /* color_write.c */

+ 15 - 1
lib/raster/color_shift.c

@@ -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>
 #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;
     colors->shift += (DCELL) shift;
 }
 }