no_sprite is now a #define for a all-zero sprite
parent
3a5ec4a0d1
commit
750b30aa89
|
@ -104,9 +104,7 @@ extern text_style_t make_text_style(const char* font, SDL_Color color, int dpi,
|
|||
extern SDL_Rect get_srcrect_from(spritesheet_t* sheet, int index);
|
||||
extern void set_active_view(const view_t* view);
|
||||
|
||||
inline sprite_t no_sprite() {
|
||||
return (sprite_t){NULL, 0.0, 0.0, {0.0, 0.0}, 0.0, 0.0, 0.0, 0, {0, 0, 0, 0}};
|
||||
}
|
||||
#define no_sprite (sprite_t){NULL, 0.0, 0.0, {0.0, 0.0}, 0.0, 0.0, 0.0, 0, {0, 0, 0, 0}}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue