1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

Kernel: Add ioctls to BochsVGADevice for mode setting and page flipping.

Use these in WindowServer instead of poking at the BochsVGADevice directly.
This commit is contained in:
Andreas Kling 2019-02-16 10:24:55 +01:00
parent 799177feda
commit 468113422f
6 changed files with 50 additions and 16 deletions

View file

@ -63,8 +63,8 @@ public:
Color menu_selection_color() const { return m_menu_selection_color; }
int menubar_menu_margin() const;
int api$menu_add_separator(int menu_id);
int api$menu_add_item(int menu_id, unsigned identifier, String&& text);
int framebuffer_fd() const { return m_framebuffer_fd; }
void set_framebuffer_fd(int fd) { m_framebuffer_fd = fd; }
private:
WSWindowManager();
@ -151,4 +151,6 @@ private:
Color m_menu_selection_color;
WeakPtr<WSMenuBar> m_current_menubar;
WeakPtr<WSMenu> m_current_menu;
int m_framebuffer_fd { -1 };
};