|
Freeciv-3.1
|
Go to the source code of this file.
Functions | |
| struct color * | gui_color_alloc (int r, int g, int b) |
| void | gui_color_free (struct color *color) |
| int | color_brightness_score (struct color *pcolor) |
| int color_brightness_score | ( | struct color * | pcolor | ) |
| struct color * gui_color_alloc | ( | int | r, |
| int | g, | ||
| int | b | ||
| ) |
Allocate a color (adjusting it for our colormap if necessary on paletted systems) and return a pointer to it.
Definition at line 33 of file colors.c.
Referenced by setup_gui_funcs().
| void gui_color_free | ( | struct color * | color | ) |
Free a previously allocated color. See color_alloc.
Definition at line 48 of file colors.c.
Referenced by setup_gui_funcs().