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/tooltip.cc')
-rw-r--r--src/ui/tooltip.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/tooltip.cc b/src/ui/tooltip.cc
index 6a692ff..1777d33 100644
--- a/src/ui/tooltip.cc
+++ b/src/ui/tooltip.cc
@@ -29,8 +29,7 @@ Tooltip::~Tooltip()
void Tooltip::resize()
{
- set_size(font()->width() * text().size() + UI::padding, font()->height() + + UI::padding);
- set_location((parent()->width() - width()) * 0.5f, parent()->height());
+ set_size(font()->width() * text().size() + UI::padding, font()->height() + UI::padding);
}
void Tooltip::draw_background()