From 750b30aa890b1632a484d55afbd088c31880710f Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 5 May 2023 22:14:01 +0200 Subject: [PATCH] no_sprite is now a #define for a all-zero sprite --- src/corelib/render.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }