Parcourir la source

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

Co-authored-by: jobat <[email protected]>
Jobat il y a 2 ans
Parent
commit
96278a4d08
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/raygui.h

+ 1 - 1
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));
                             }