diff --git a/src/corelib/render.h b/src/corelib/render.h index 62ce38f..62dc9a8 100644 --- a/src/corelib/render.h +++ b/src/corelib/render.h @@ -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 }