summaryrefslogtreecommitdiff
path: root/WindowServer/WSScreen.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-16 17:54:06 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-16 17:57:58 +0100
commit7750e6952b8d71b18b7be1e040e5421ebdd23b4f (patch)
treeffdf480ce166dfa5f3fa0871b66da65c1ec536a4 /WindowServer/WSScreen.cpp
parenta2ec09bc205ecbf746f9cc245054c24c50b6832a (diff)
downloadserenity-7750e6952b8d71b18b7be1e040e5421ebdd23b4f.zip
Move some more classes to the new coding style.
Diffstat (limited to 'WindowServer/WSScreen.cpp')
-rw-r--r--WindowServer/WSScreen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WindowServer/WSScreen.cpp b/WindowServer/WSScreen.cpp
index d1ce9ec132..1fa81a3a0d 100644
--- a/WindowServer/WSScreen.cpp
+++ b/WindowServer/WSScreen.cpp
@@ -34,12 +34,12 @@ WSScreen::~WSScreen()
void WSScreen::on_receive_mouse_data(int dx, int dy, bool left_button, bool right_button)
{
auto prev_location = m_cursor_location;
- m_cursor_location.moveBy(dx, dy);
+ m_cursor_location.move_by(dx, dy);
m_cursor_location.constrain(rect());
if (m_cursor_location.x() >= width())
- m_cursor_location.setX(width() - 1);
+ m_cursor_location.set_x(width() - 1);
if (m_cursor_location.y() >= height())
- m_cursor_location.setY(height() - 1);
+ m_cursor_location.set_y(height() - 1);
if (m_cursor_location != prev_location) {
auto event = make<MouseEvent>(WSEvent::MouseMove, m_cursor_location.x(), m_cursor_location.y());
WSEventLoop::the().post_event(&WSWindowManager::the(), move(event));