From f53cdb737b32785cd58a9446f42d8eac7be11de0 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 3 Feb 2019 20:35:25 +0100 Subject: [PATCH] Keep NUM_CONTROLS as a define Despite proposed solution is probably better, I prefer old approximation to be more simple and clear. --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 2ab6698..d663a5f 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -134,6 +134,7 @@ #define TEXTEDIT_CURSOR_BLINK_FRAMES 20 // Text edit controls cursor blink timming +#define NUM_CONTROLS 13 // Number of standard controls #define NUM_PROPS_DEFAULT 16 // Number of standard properties #define NUM_PROPS_EXTENDED 8 // Number of extended properties @@ -201,8 +202,7 @@ typedef enum { TEXTBOX, // VALUEBOX, SPINNER LISTVIEW, COLORPICKER, - SCROLLBAR, - NUM_CONTROLS + SCROLLBAR } GuiControlStandard; // Gui default properties for every control