diff options
Diffstat (limited to 'Services/WindowServer/Screen.h')
-rw-r--r-- | Services/WindowServer/Screen.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Services/WindowServer/Screen.h b/Services/WindowServer/Screen.h index d522ea7b96..cce7d23e89 100644 --- a/Services/WindowServer/Screen.h +++ b/Services/WindowServer/Screen.h @@ -51,10 +51,10 @@ public: static Screen& the(); - Gfx::Size size() const { return { width(), height() }; } - Gfx::Rect rect() const { return { 0, 0, width(), height() }; } + Gfx::IntSize size() const { return { width(), height() }; } + Gfx::IntRect rect() const { return { 0, 0, width(), height() }; } - Gfx::Point cursor_location() const { return m_cursor_location; } + Gfx::IntPoint cursor_location() const { return m_cursor_location; } unsigned mouse_button_state() const { return m_mouse_button_state; } void on_receive_mouse_data(const MousePacket&); @@ -73,7 +73,7 @@ private: int m_height { 0 }; int m_framebuffer_fd { -1 }; - Gfx::Point m_cursor_location; + Gfx::IntPoint m_cursor_location; unsigned m_mouse_button_state { 0 }; unsigned m_modifiers { 0 }; }; |