JSON protocol: fix field_addr memory leak.
[freeciv.git] / client / gui-sdl2 / colors.h
blob9769441cfa01f86314a610298d71fdc88c07f9ac
1 /***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 /***********************************************************************
15 colors.h - description
16 -------------------
17 begin : Mon Jul 15 2002
18 copyright : (C) 2002 by Rafał Bursig
19 email : Rafał Bursig <bursig@poczta.fm>
20 ***********************************************************************/
22 #ifndef FC__COLORS_H
23 #define FC__COLORS_H
25 /* SDL2 */
26 #ifdef SDL2_PLAIN_INCLUDE
27 #include <SDL.h>
28 #else /* SDL2_PLAIN_INCLUDE */
29 #include <SDL2/SDL.h>
30 #endif /* SDL2_PLAIN_INCLUDE */
32 /* gui-sdl2 */
33 #include "themecolors.h"
35 #include "colors_g.h"
37 struct color {
38 SDL_Color *color;
41 struct color *color_alloc_rgba(int r, int g, int b, int a);
42 SDL_Color *get_theme_color(enum theme_color themecolor);
43 SDL_Color *get_game_color(enum color_std stdcolor);
45 #endif /* FC__COLORS_H */