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

DisplaySettings+WindowServer: Add support for display connector devices

This commit is contained in:
Liav A 2022-04-29 17:56:24 +03:00 committed by Andreas Kling
parent e6ebf9e5c1
commit d9a2706079
12 changed files with 308 additions and 38 deletions

View file

@ -721,6 +721,13 @@ void Compositor::flush(Screen& screen)
// now so that they can be sent to the device.
screen.flush_display(screen_data.m_buffers_are_flipped ? 1 : 0);
}
// Note: We write all contents from the internal buffer of WindowServer Screen
// to the actual framebuffer with the write() syscall, but after we flush the screen
// to ensure we are in a "clean state"...
// FIXME: This write is completely inefficient and needs to be done in chunks
// only when appropriate...
screen.write_all_display_contents();
}
void Compositor::invalidate_screen()