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/console.cc')
-rw-r--r--src/ui/console.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/console.cc b/src/ui/console.cc
index 5c15bc5..00aa09f 100644
--- a/src/ui/console.cc
+++ b/src/ui/console.cc
@@ -17,6 +17,7 @@
#include "render/gl.h"
#include "ui/console.h"
#include "ui/paint.h"
+#include "ui/ui.h"
namespace ui
{
@@ -210,6 +211,11 @@ void Console::draw()
l[0] += width() - s.width() - 4;
l[1] += height() - s.height() - 4;
Paint::draw_text(l, font(), version);
+
+ // disable mouse cursor
+ if (has_mouse_focus()) {
+ ui::root()->set_pointer();
+ }
}
void Console::save_history()