summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-06 13:08:32 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-06 13:08:32 +0100
commit9b87843af169b08f1b852da96f696004866783fe (patch)
treec5a7267ff44cc6a45ec39784e8ce34ea9774a96b /Applications/SystemMonitor
parent20cfd2a6bff8c469970651dd73ffee60ab0e5176 (diff)
downloadserenity-9b87843af169b08f1b852da96f696004866783fe.zip
LibGfx: Unpublish Gfx::Point from global namespace
Diffstat (limited to 'Applications/SystemMonitor')
-rw-r--r--Applications/SystemMonitor/GraphWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SystemMonitor/GraphWidget.cpp b/Applications/SystemMonitor/GraphWidget.cpp
index 047911d7ba..2bfb042bd5 100644
--- a/Applications/SystemMonitor/GraphWidget.cpp
+++ b/Applications/SystemMonitor/GraphWidget.cpp
@@ -56,13 +56,13 @@ void GraphWidget::paint_event(GUI::PaintEvent& event)
auto inner_rect = frame_inner_rect();
float scale = (float)inner_rect.height() / (float)m_max;
- Point prev_point;
+ Gfx::Point prev_point;
for (int i = 0; i < m_values.size(); ++i) {
int x = inner_rect.right() - (i * 2) + 1;
if (x < 0)
break;
float scaled_value = (float)m_values.at(m_values.size() - i - 1) * scale;
- Point point = { x, inner_rect.bottom() - (int)scaled_value };
+ Gfx::Point point = { x, inner_rect.bottom() - (int)scaled_value };
if (i != 0)
painter.draw_line(prev_point, point, m_graph_color);
prev_point = point;