Fix error in GuiTabBar (#271)

When ```RAYGUI_NO_ICONS``` defined, getting errors in ```GuiTabBar```.
It seems this is copied from ```GuiWindowBox``` and then not edited and forgotten.
This commit is contained in:
Hanaxar 2023-04-19 18:01:47 +03:00 committed by GitHub
parent 8de6bf1d63
commit 926fdf91cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1566,7 +1566,7 @@ int GuiTabBar(Rectangle bounds, const char **text, int count, int *active)
GuiSetStyle(BUTTON, BORDER_WIDTH, 1);
GuiSetStyle(BUTTON, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER);
#if defined(RAYGUI_NO_ICONS)
if (GuiButton(closeButtonRec, "x")) closing = i;
if (GuiButton(RAYGUI_CLITERAL(Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, "x")) closing = i;
#else
if (GuiButton(RAYGUI_CLITERAL(Rectangle){ tabBounds.x + tabBounds.width - 14 - 5, tabBounds.y + 5, 14, 14 }, GuiIconText(ICON_CROSS_SMALL, NULL))) closing = i;
#endif