mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-26 16:18:53 +00:00
avoid leading spaces in text_rectangle_bounds (#2746)
This commit is contained in:
@@ -263,6 +263,6 @@ static void DrawTextBoxedSelectable(Font font, const char *text, Rectangle rec,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
textOffsetX += glyphWidth;
|
if ((textOffsetX != 0) || (codepoint != ' ')) textOffsetX += glyphWidth; // avoid leading spaces
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user