Skip to content

Commit 14f4bf6

Browse files
committed
Update raygui.h
1 parent 92a4d06 commit 14f4bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extras/raygui.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,13 +4116,13 @@ static void GuiTooltip(Rectangle controlRec)
41164116

41174117
if ((controlRec.x + textSize.x + 16) > GetScreenWidth()) controlRec.x -= (textSize.x + 16 - controlRec.width);
41184118

4119-
GuiPanel((Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.f }, NULL);
4119+
GuiPanel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.f }, NULL);
41204120

41214121
int textPadding = GuiGetStyle(LABEL, TEXT_PADDING);
41224122
int textAlignment = GuiGetStyle(LABEL, TEXT_ALIGNMENT);
41234123
GuiSetStyle(LABEL, TEXT_PADDING, 0);
41244124
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER);
4125-
GuiLabel((Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.f }, guiTooltipPtr);
4125+
GuiLabel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.f }, guiTooltipPtr);
41264126
GuiSetStyle(LABEL, TEXT_ALIGNMENT, textAlignment);
41274127
GuiSetStyle(LABEL, TEXT_PADDING, textPadding);
41284128
}

0 commit comments

Comments
 (0)