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/ui.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/ui.cc') diff --git a/src/ui/ui.cc b/src/ui/ui.cc index b60a65e..82d3990 100644 --- a/src/ui/ui.cc +++ b/src/ui/ui.cc @@ -568,7 +568,7 @@ void UI::draw_pointer() c.a = 0.5f; } paint::color(c); - math::Vector2f pos(mouse_cursor.x - pointer_size * 0.5f, mouse_cursor.y - pointer_size * 0.5f); + math::Vector2f pos(mouse_cursor.x() - pointer_size * 0.5f, mouse_cursor.y() - pointer_size * 0.5f); math::Vector2f s(pointer_size, pointer_size); std::string texture("pointers/"); @@ -576,12 +576,12 @@ void UI::draw_pointer() if (mouse_pointer_animated) { gl::push(); - gl::translate(mouse_cursor.x, mouse_cursor.y, 0); + gl::translate(mouse_cursor.x(), mouse_cursor.y(), 0); float angle = core::application()->time()* 0.75f - floorf(core::application()->time() * 0.75f); angle *= 360.0f; gl::rotate(angle, math::Vector3f(0, 0, 1.0f)); - gl::translate(-mouse_cursor.x, -mouse_cursor.y, 0); + gl::translate(-mouse_cursor.x(), -mouse_cursor.y(), 0); } paint::bitmap(pos, s, texture); -- cgit v1.2.3