From d763e294f44eb38b94bf7e2055b77a982b72b7c0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 17:34:00 +0000 Subject: more constness --- src/ui/inputbox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/inputbox.cc') 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]); -- cgit v1.2.3