From aedc75e481ddee2fb99edabb5f0deab098316f1a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 14 Apr 2024 20:36:13 +0200 Subject: [PATCH] static inline --- src/gui.c | 2 +- src/gui.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui.c b/src/gui.c index 6d3a309..d6fecd8 100644 --- a/src/gui.c +++ b/src/gui.c @@ -309,7 +309,7 @@ static inline int _button_mouse_up( Button* buttons, int mx, int my, int mb ) return ret; } -void button_draw_all( Button* buttons ) +static inline void button_draw_all( Button* buttons ) { while ( buttons->label ) { _button_draw( buttons ); diff --git a/src/gui.h b/src/gui.h index 53756ea..10caff1 100644 --- a/src/gui.h +++ b/src/gui.h @@ -88,8 +88,6 @@ extern bool SDL_ready; // Releaseing mouse button 1 anywhere unpushes the button #define BUTTON_B1RELEASE 0x10 -extern void button_draw_all( /*BITMAP *bmp,*/ Button* buttons ); - extern void SDL__display_show( void ); extern bool gui_events();