diff options
Diffstat (limited to 'src/ui/tooltip.cc')
-rw-r--r-- | src/ui/tooltip.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/tooltip.cc b/src/ui/tooltip.cc index 95f1ac8..b1e8c3c 100644 --- a/src/ui/tooltip.cc +++ b/src/ui/tooltip.cc @@ -6,6 +6,7 @@ #include "ui/tooltip.h" #include "ui/ui.h" +#include "ui/paint.h" #include <cassert> @@ -32,9 +33,15 @@ void Tooltip::resize() set_location((parent()->width() - width()) * 0.5f, parent()->height()); } +void Tooltip::draw_background() +{ + Paint::draw_material(global_location(), size(), "ui/window"); +} + void Tooltip::draw() { - if (tooltip_global != this) { + if (tooltip_global != this) + { hide(); } else { Label::draw(); |