summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/Application.cpp')
-rw-r--r--Libraries/LibGUI/Application.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/Application.cpp b/Libraries/LibGUI/Application.cpp
index 7f7148b754..fd3a15bd19 100644
--- a/Libraries/LibGUI/Application.cpp
+++ b/Libraries/LibGUI/Application.cpp
@@ -141,7 +141,7 @@ private:
RefPtr<Label> m_label;
};
-void Application::show_tooltip(const StringView& tooltip, const Gfx::Point& screen_location)
+void Application::show_tooltip(const StringView& tooltip, const Gfx::IntPoint& screen_location)
{
if (!m_tooltip_window) {
m_tooltip_window = TooltipWindow::construct();
@@ -149,10 +149,10 @@ void Application::show_tooltip(const StringView& tooltip, const Gfx::Point& scre
}
m_tooltip_window->set_tooltip(tooltip);
- Gfx::Rect desktop_rect = Desktop::the().rect();
+ Gfx::IntRect desktop_rect = Desktop::the().rect();
const int margin = 30;
- Gfx::Point adjusted_pos = screen_location;
+ Gfx::IntPoint adjusted_pos = screen_location;
if (adjusted_pos.x() + m_tooltip_window->width() >= desktop_rect.width() - margin) {
adjusted_pos = adjusted_pos.translated(-m_tooltip_window->width(), 0);
}