[GRASS-dev] [GRASS GIS] #969: move color structs to colors.h?
GRASS GIS
trac at osgeo.org
Sun Feb 28 19:07:38 EST 2010
#969: move color structs to colors.h?
------------------------------------------+---------------------------------
Reporter: hamish | Owner: grass-dev at 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>
More information about the grass-dev
mailing list