61 w = (
image->w + 7) / 8;
77 color = (r + g + b) / 3;
78 m[
x / 8] |= 128 >> (
x & 7);
80 d[
x / 8] |= 128 >> (
x & 7);
102 static SDL_Rect area = {0, 0, 0, 0};
void update_main_screen(void)
Uint32 get_pixel(SDL_Surface *surf, Sint16 x, Sint16 y)
int screen_blit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
SDL_Surface * create_surf(int width, int height, Uint32 flags)
#define unlock_surf(surf)
#define GUI_SDL_OPTION(optname)
SDL_Cursor * fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES]
static SDL_Cursor * SurfaceToCursor(SDL_Surface *image, int hx, int hy)
enum cursor_type mouse_cursor_type
void animate_mouse_cursor(void)
struct color_cursor current_color_cursor
bool mouse_cursor_changed
void unload_cursors(void)
SDL_Cursor * disabled_cursor
void draw_mouse_cursor(void)
void update_mouse_cursor(enum cursor_type new_cursor_type)
void flush_rect(SDL_Rect *rect, bool force_flush)
#define GET_SURF(m_sprite)
#define fc_calloc(n, esz)
struct sprite int int int int struct sprite * mask
struct sprite * get_cursor_sprite(const struct tileset *t, enum cursor_type cursor, int *hot_x, int *hot_y, int frame)
#define NUM_CURSOR_FRAMES