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:
parent
8de6bf1d63
commit
926fdf91cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user