Browse Source

RENAMED: riconsdata.h to ricons.h

Ray 5 years ago
parent
commit
b8932dab26
2 changed files with 8 additions and 5 deletions
  1. 2 1
      src/raygui.h
  2. 6 4
      src/ricons.h

+ 2 - 1
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 <stdio.h>              // Required for: FILE, fopen(), fclose(), fprintf(), feof(), fscanf(), vsprintf()

+ 6 - 4
src/riconsdata.h → 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