Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/inputbox.cc')
-rw-r--r--src/ui/inputbox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputbox.cc b/src/ui/inputbox.cc
index 08b85be..07a0a7e 100644
--- a/src/ui/inputbox.cc
+++ b/src/ui/inputbox.cc
@@ -76,7 +76,7 @@ void InputBox::draw()
// draw the prompt
if (prompt_width) {
paint::text(v, size(), font(), input_prompt);
- v.x += prompt_width * font()->width();
+ v[0] += prompt_width * font()->width();
}
paint::color(palette()->text());
@@ -110,7 +110,7 @@ void InputBox::draw()
}
// draw the part behind the cursor
- v.x += draw_width * font()->width();
+ v[0] += draw_width * font()->width();
if (input_pos < input_text.size()) {
if (input_pos > 1 && aux::is_color_code(input_text.c_str() + input_pos -1)) {
paint::color_code(input_text[input_pos]);