aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/software_mouse_pointer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp
index b86b06ae..461ad4d5 100644
--- a/src/menu/software_mouse_pointer.cpp
+++ b/src/menu/software_mouse_pointer.cpp
@@ -97,8 +97,10 @@ namespace usdx
void SoftwareMousePointer::draw(void)
{
- if (fade_inactive->is_ready())
+ if (fade_inactive->is_ready()) {
+ set_visible(false);
return;
+ }
glBindTexture(GL_TEXTURE_2D, texture_normal->get_texture());
@@ -121,6 +123,10 @@ namespace usdx
{
set_position(x, y);
fade_inactive->update();
+
+ if (!get_visible()) {
+ set_visible(true);
+ }
}
};