1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Use established device name and number for framebuffer

This is to prepare for other framebuffer implementations, for which it
would be inappropriate to use the /dev/bxvga device name.
This commit is contained in:
Conrad Pankoff 2019-08-12 20:53:26 +10:00 committed by Andreas Kling
parent e60577aab6
commit 53ddbce0b3
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ WSScreen::WSScreen(unsigned width, unsigned height)
ASSERT(!s_the);
s_the = this;
m_cursor_location = rect().center();
m_framebuffer_fd = open("/dev/bxvga", O_RDWR);
m_framebuffer_fd = open("/dev/fb0", O_RDWR);
ASSERT(m_framebuffer_fd >= 0);
set_resolution(width, height);