Review literals to work with C++ and formatting details #233

This commit is contained in:
Ray
2022-10-24 13:58:14 +02:00
parent 0562c4c93f
commit 3386e912d3

View File

@ -4018,7 +4018,7 @@ static void GuiDrawText(const char *text, Rectangle bounds, int alignment, Color
// TODO: Draw only required text glyphs fitting the bounds.width, '...' can be appended at the end of the text // TODO: Draw only required text glyphs fitting the bounds.width, '...' can be appended at the end of the text
if (textOffsetX < bounds.width) if (textOffsetX < bounds.width)
{ {
DrawTextCodepoint(guiFont, codepoint, (Vector2) { position.x + textOffsetX, position.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), tint); DrawTextCodepoint(guiFont, codepoint, RAYGUI_CLITERAL(Vector2){ position.x + textOffsetX, position.y + textOffsetY }, (float)GuiGetStyle(DEFAULT, TEXT_SIZE), tint);
} }
} }