Browse Source

Update raygui.h

Ray 2 years ago
parent
commit
0562c4c93f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/raygui.h

+ 3 - 3
src/raygui.h

@@ -1510,14 +1510,14 @@ int GuiTabBar(Rectangle bounds, const char **text, int count, int *active)
 #if defined(RAYGUI_NO_ICONS)
 #if defined(RAYGUI_NO_ICONS)
         if (GuiButton(closeButtonRec, "x")) closing = i;
         if (GuiButton(closeButtonRec, "x")) closing = i;
 #else
 #else
-        if (GuiButton((Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, GuiIconText(ICON_CROSS_SMALL, NULL))) closing = i;
+        if (GuiButton(RAYGUI_CLITERAL(Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, GuiIconText(ICON_CROSS_SMALL, NULL))) closing = i;
 #endif
 #endif
         GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth);
         GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth);
         GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlignment);
         GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlignment);
     }
     }
 
 
-    GuiDrawRectangle((Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, 1 }, 0, BLANK, GetColor(GuiGetStyle(TOGGLE, BORDER_COLOR_NORMAL)));
-    //GuiLine((Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, 1 }, NULL);
+    GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, 1 }, 0, BLANK, GetColor(GuiGetStyle(TOGGLE, BORDER_COLOR_NORMAL)));
+    //GuiLine(RAYGUI_CLITERAL(Rectangle){ bounds.x, bounds.y + bounds.height - 1, bounds.width, 1 }, NULL);
     //--------------------------------------------------------------------
     //--------------------------------------------------------------------
 
 
     return closing;     // Return closing tab requested
     return closing;     // Return closing tab requested