diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-17 01:43:01 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-17 01:43:01 +0100 |
commit | 82768e7ac5a50618d3334118160a63bb61d4db83 (patch) | |
tree | 71a187dda07bae64e439a6e55a79e7234f83ea83 /WindowServer/WSScreen.h | |
parent | 809266a9fb5d159c6d9538f2298ee9f6c6eee3ec (diff) | |
download | serenity-82768e7ac5a50618d3334118160a63bb61d4db83.zip |
WindowServer: Move video mode setup to WSScreen.
Diffstat (limited to 'WindowServer/WSScreen.h')
-rw-r--r-- | WindowServer/WSScreen.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WindowServer/WSScreen.h b/WindowServer/WSScreen.h index e9c41373e1..851a12fd95 100644 --- a/WindowServer/WSScreen.h +++ b/WindowServer/WSScreen.h @@ -7,7 +7,7 @@ class WSScreen { public: - WSScreen(RGBA32*, unsigned width, unsigned height); + WSScreen(unsigned width, unsigned height); ~WSScreen(); void set_resolution(int width, int height); @@ -21,6 +21,8 @@ public: Size size() const { return { width(), height() }; } Rect rect() const { return { 0, 0, width(), height() }; } + void set_y_offset(int); + Point cursor_location() const { return m_cursor_location; } bool left_mouse_button_pressed() const { return m_left_mouse_button_pressed; } bool right_mouse_button_pressed() const { return m_right_mouse_button_pressed; } @@ -28,14 +30,12 @@ public: void on_receive_mouse_data(int dx, int dy, bool left_button, bool right_button); void on_receive_keyboard_data(KeyEvent); -protected: - WSScreen(unsigned width, unsigned height); - private: RGBA32* m_framebuffer { nullptr }; int m_width { 0 }; int m_height { 0 }; + int m_framebuffer_fd { -1 }; Point m_cursor_location; bool m_left_mouse_button_pressed { false }; |