mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
treewide: write xXineramaScreenInfo via x_rpcbuf_write_rect()
The xXineramaScreenInfo payload type has the same definition as xRectangle, so we can just use x_rpcbuf_write_rect() for those. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
fe9fcfe98f
commit
f288745d49
@@ -246,11 +246,13 @@ ProcRRXineramaQueryScreens(ClientPtr client)
|
||||
}
|
||||
|
||||
for (m = 0; m < nmonitors; m++) {
|
||||
BoxRec box = monitors[m].geometry.box;
|
||||
/* write xXineramaScreenInfo */
|
||||
x_rpcbuf_write_INT16(&rpcbuf, monitors[m].geometry.box.x1);
|
||||
x_rpcbuf_write_INT16(&rpcbuf, monitors[m].geometry.box.y1);
|
||||
x_rpcbuf_write_CARD16(&rpcbuf, monitors[m].geometry.box.x2 - monitors[m].geometry.box.x1);
|
||||
x_rpcbuf_write_CARD16(&rpcbuf, monitors[m].geometry.box.y2 - monitors[m].geometry.box.y1);
|
||||
x_rpcbuf_write_rect(&rpcbuf,
|
||||
box.x1,
|
||||
box.y1,
|
||||
box.x2 - box.x1,
|
||||
box.y2 - box.y1);
|
||||
}
|
||||
|
||||
if (monitors)
|
||||
|
||||
Reference in New Issue
Block a user