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/ui.cc | |
parent | 95cc140404c6524ea16e193e1421e826b239114f (diff) |
more constness
Diffstat (limited to 'src/ui/ui.cc')
-rw-r--r-- | src/ui/ui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |