Simplify cli gr_string call

This commit is contained in:
Kp 2015-06-07 16:20:47 +00:00
parent ddb521c5e7
commit 1afa132c18

View file

@ -145,10 +145,7 @@ void cli_draw(int y)
gr_get_string_size(Prompt.get(), &prompt_width, &h, &w);
gr_get_string_size(LCommand + Offset, &cmd_width, &h, &w);
x = CLI_CHAR_BORDER + prompt_width + cmd_width;
if (CLI_insert_mode)
gr_string(x, y-h, CLI_INS_CURSOR);
else
gr_string(x, y-h, CLI_OVR_CURSOR);
gr_string(x, y-h, CLI_insert_mode ? CLI_INS_CURSOR : CLI_OVR_CURSOR);
}
}