Commit 69fe578f authored by Max Kobelt's avatar Max Kobelt
Browse files

Hide underscore if reached max chars

parent 4d20c76b
......@@ -51,7 +51,7 @@ void drawMenu() {
NAME_FONT_SIZE,
RED
);
if ((++framesCount / (FRAME_RATE / 2)) % 2) {
if ((++framesCount / (FRAME_RATE / 2)) % 2 && letterCount <= MAX_INPUT_CHARS - 1) {
DrawText("_",
inputBox.x + (strlen(name) ? 1.5 : 1) * TEXT_SIDE_MARGIN + MeasureText(name, NAME_FONT_SIZE),
inputBox.y + inputBox.height - NAME_FONT_SIZE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment