From 4392da970ac0fc433530579b13030a41ff4a8f59 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 13 Jun 2021 06:16:06 -0600 Subject: WindowServer: Add initial support for rendering on multiple screens This allows WindowServer to use multiple framebuffer devices and compose the desktop with any arbitrary layout. Currently, it is assumed that it is configured contiguous and non-overlapping, but this should eventually be enforced. To make rendering efficient, each window now also tracks on which screens it needs to be rendered. This way we don't have to iterate all the windows for each screen but instead use the same rendering loop and then only render to the screen (or screens) that the window actually uses. --- Base/etc/WindowServer.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Base/etc') diff --git a/Base/etc/WindowServer.ini b/Base/etc/WindowServer.ini index 4c83ec6273..177edeef48 100644 --- a/Base/etc/WindowServer.ini +++ b/Base/etc/WindowServer.ini @@ -1,4 +1,10 @@ -[Screen] +[Screens] +MainScreen=0 + +[Screen0] +Device=/dev/fb0 +Left=0 +Top=0 Width=1024 Height=768 ScaleFactor=1 -- cgit v1.2.3