Skip to content

Commit c623a92

Browse files
committed
Update raygui.h
1 parent 566c73f commit c623a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raygui.h

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

53185318
if ((controlRec.x + textSize.x + 16) > GetScreenWidth()) controlRec.x -= (textSize.x + 16 - controlRec.width);
53195319

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

53225322
int textPadding = GuiGetStyle(LABEL, TEXT_PADDING);
53235323
int textAlignment = GuiGetStyle(LABEL, TEXT_ALIGNMENT);
53245324
GuiSetStyle(LABEL, TEXT_PADDING, 0);
53255325
GuiSetStyle(LABEL, TEXT_ALIGNMENT, TEXT_ALIGN_CENTER);
5326-
GuiLabel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.f }, guiTooltipPtr);
5326+
GuiLabel(RAYGUI_CLITERAL(Rectangle){ controlRec.x, controlRec.y + controlRec.height + 4, textSize.x + 16, GuiGetStyle(DEFAULT, TEXT_SIZE) + 8.0f }, guiTooltipPtr);
53275327
GuiSetStyle(LABEL, TEXT_ALIGNMENT, textAlignment);
53285328
GuiSetStyle(LABEL, TEXT_PADDING, textPadding);
53295329
}

0 commit comments

Comments
 (0)