diff --git a/src/raygui.h b/src/raygui.h index 6137127..7d78fcf 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -503,7 +503,8 @@ RAYGUIDEF bool GuiCheckIconPixel(int iconId, int x, int y); // Check icon pi #if defined(RAYGUI_IMPLEMENTATION) #if defined(RAYGUI_SUPPORT_ICONS) - #include "riconsdata.h" // Required for: raygui icons data + #define RICONS_IMPLEMENTATION + #include "ricons.h" // Required for: raygui icons data #endif #include // Required for: FILE, fopen(), fclose(), fprintf(), feof(), fscanf(), vsprintf() diff --git a/src/riconsdata.h b/src/ricons.h similarity index 99% rename from src/riconsdata.h rename to src/ricons.h index b37e467..86cddd0 100644 --- a/src/riconsdata.h +++ b/src/ricons.h @@ -1,10 +1,10 @@ /********************************************************************************************** * -* rIconsData - Icons data pack intended for tools development with raygui +* rIcons - Icons pack intended for tools development with raygui * * LICENSE: zlib/libpng * -* Copyright (c) 2019 Ramon Santamaria (@raysan5) +* Copyright (c) 2019-2020 Ramon Santamaria (@raysan5) * **********************************************************************************************/ @@ -287,6 +287,9 @@ typedef enum { RICON_255 = 255, } guiIconName; +#endif // RICONS_H + +#if defined(RICONS_IMPLEMENTATION) //---------------------------------------------------------------------------------- // Icons data (allocated on heap by default) // NOTE: A new icon set could be loaded over this array using GuiLoadIcons(), @@ -550,5 +553,4 @@ static unsigned int guiIcons[RICON_MAX_ICONS*RICON_DATA_ELEMENTS] = { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // RICON_254 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, // RICON_255 }; - -#endif // RICONS_H +#endif // RICONS_IMPLEMENTATION