minor fix, removed unnecessary float cast for textOffsetY (#320)

Co-authored-by: jobat <jobat@toolbelt-games.com>
This commit is contained in:
Jobat 2023-08-06 19:07:56 +01:00 committed by GitHub
parent f8966405ac
commit 96278a4d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4685,7 +4685,7 @@ static void GuiDrawText(const char *text, Rectangle bounds, int alignment, Color
if ((boundsPos.x + textOffsetX + glyphWidth) > (bounds.x + bounds.width)) if ((boundsPos.x + textOffsetX + glyphWidth) > (bounds.x + bounds.width))
{ {
textOffsetX = 0.0f; textOffsetX = 0.0f;
textOffsetY += (float)GuiGetStyle(DEFAULT, TEXT_LINE_SPACING); textOffsetY += GuiGetStyle(DEFAULT, TEXT_LINE_SPACING);
DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ boundsPos.x + textOffsetX, boundsPos.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha)); DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ boundsPos.x + textOffsetX, boundsPos.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), GuiFade(tint, guiAlpha));
} }