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)
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 ***********************************************************************/
15 #include <fc_config.h>
39 #include "mapview_g.h"
43 /* client/gui-gtk-3.0 */
48 struct sprite
*intro_gfx_sprite
;
50 GdkCursor
*fc_cursors
[CURSOR_LAST
][NUM_CURSOR_FRAMES
];
52 /***************************************************************************
53 Returns TRUE to indicate that gtk3-client supports given view type
54 ***************************************************************************/
55 bool is_view_supported(enum ts_type type
)
66 #define COLOR_MOTTO_FACE_R 0x2D
67 #define COLOR_MOTTO_FACE_G 0x71
68 #define COLOR_MOTTO_FACE_B 0xE3
70 /***************************************************************************
72 ***************************************************************************/
73 void load_cursors(void)
75 enum cursor_type cursor
;
76 GdkDisplay
*display
= gdk_display_get_default();
79 for (cursor
= 0; cursor
< CURSOR_LAST
; cursor
++) {
80 for (frame
= 0; frame
< NUM_CURSOR_FRAMES
; frame
++) {
83 = get_cursor_sprite(tileset
, cursor
, &hot_x
, &hot_y
, frame
);
84 GdkPixbuf
*pixbuf
= sprite_get_pixbuf(sprite
);
86 fc_cursors
[cursor
][frame
] = gdk_cursor_new_from_pixbuf(display
, pixbuf
,
88 g_object_unref(G_OBJECT(pixbuf
));
93 /***************************************************************************
94 This function is so that packhand.c can be gui-independent, and
95 not have to deal with Sprites itself.
96 ***************************************************************************/
97 void free_intro_radar_sprites(void)
99 if (intro_gfx_sprite
) {
100 free_sprite(intro_gfx_sprite
);
101 intro_gfx_sprite
= NULL
;