diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-16 17:34:00 +0000 |
commit | d763e294f44eb38b94bf7e2055b77a982b72b7c0 (patch) | |
tree | 37f91c6b7fee58fcecfbfc54dda3f71eb8617b9f /src/ui/inputbox.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/ui/inputbox.cc')
-rw-r--r-- | src/ui/inputbox.cc | 4 |
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]); |