From 879fb2adefadbc5f38711cd8f01bcc4cee053e3d Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Tue, 2 Mar 2021 09:44:19 +0100 Subject: i hate cmake, g++, ld, collect2, cc1, x86_64-w64-mingw32 --- render/button.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render/button.h') diff --git a/render/button.h b/render/button.h index b8d10b6..e4ff189 100644 --- a/render/button.h +++ b/render/button.h @@ -1,8 +1,8 @@ #ifndef BUTTON_H #define BUTTON_H -#include -#include +#include +#include "render_text.h" typedef struct { char txt[32]; @@ -10,7 +10,7 @@ typedef struct { float pos[2]; } button; -bool mouse_in_button (float pt[], txtd *t, button *b); +int mouse_in_button (float pt[], txtd *t, button *b); void render_button (SDL_Renderer* rend, txtd *t, button *b); #endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf