From 96278a4d0813d106bb1b5540c964715936feb455 Mon Sep 17 00:00:00 2001 From: Jobat Date: Sun, 6 Aug 2023 19:07:56 +0100 Subject: [PATCH] minor fix, removed unnecessary float cast for textOffsetY (#320) Co-authored-by: jobat --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index fecbd0c..0b17c85 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -4685,7 +4685,7 @@ static void GuiDrawText(const char *text, Rectangle bounds, int alignment, Color if ((boundsPos.x + textOffsetX + glyphWidth) > (bounds.x + bounds.width)) { 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)); }