#969: move color structs to colors.h? ------------------------------------------+--------------------------------- Reporter: hamish | Owner: grass-dev@lists.osgeo.org Type: task | Status: new Priority: normal | Milestone: 7.0.0 Component: Display | Version: svn-trunk Keywords: RGBA_Color, G_str_to_color() | Platform: All Cpu: All | ------------------------------------------+--------------------------------- Hi,
in trunk the RGBA_Color struct has been moved into include/raster.h. As its use is more general than just raster maps (e.g. d.graph and D_symbol() use it) IMO there's no reason for it to be there and it should be moved into include/colors.h or back into gis.h. Also, any objections to changing G_str_to_color() in trunk to use `unsigned char` instead of `int` for R,G,B? It would save some casting. Hamish -- Ticket URL: <https://trac.osgeo.org/grass/ticket/969> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev