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/ui.cc')
-rw-r--r--src/ui/ui.cc6
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);