Commit 07886302 authored by Max Kobelt's avatar Max Kobelt
Browse files

Fix blinking underscore

parent ab9f9658
......@@ -33,7 +33,7 @@ void calcMenu() {
if (IsKeyPressed(KEY_BACKSPACE) && letterCount > 0) {
name[--letterCount] = 0;
}
}
void drawMenu() {
......@@ -50,8 +50,8 @@ void drawMenu() {
);
if ((++framesCount / (FRAME_RATE / 2)) % 2 && letterCount <= MAX_INPUT_CHARS - 1) {
DrawText("_",
(int) (inputBox.x + (letterCount ? 1.5 : 1)) * TEXT_SIDE_MARGIN + MeasureText(name, NAME_FONT_SIZE),
(int) (inputBox.y + inputBox.height) - NAME_FONT_SIZE,
inputBox.x + (letterCount ? 1.5 : 1) * TEXT_SIDE_MARGIN + MeasureText(name, NAME_FONT_SIZE),
inputBox.y + inputBox.height - NAME_FONT_SIZE,
NAME_FONT_SIZE,
RED
);
......
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