Xinerama: Fix up obnoxiously-indented code

Comments inside of conditionals confuse indent to death.  Which is fair
enough really.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone 2012-03-15 15:13:51 +00:00 committed by Keith Packard
parent 9838b7032e
commit 58b1f739d7

View File

@ -1928,23 +1928,21 @@ PanoramiXGetImage(ClientPtr client)
isRoot = IS_ROOT_DRAWABLE(draw);
if (isRoot) {
if ( /* check for being onscreen */
x < 0 || x + w > PanoramiXPixWidth ||
y < 0 || y + h > PanoramiXPixHeight)
/* check for being onscreen */
if (x < 0 || x + w > PanoramiXPixWidth ||
y < 0 || y + h > PanoramiXPixHeight)
return BadMatch;
}
else {
if ( /* check for being onscreen */
screenInfo.screens[0]->x + pDraw->x + x < 0 ||
screenInfo.screens[0]->x + pDraw->x + x + w > PanoramiXPixWidth
|| screenInfo.screens[0]->y + pDraw->y + y < 0 ||
screenInfo.screens[0]->y + pDraw->y + y + h > PanoramiXPixHeight
||
/* check for being inside of border */
x < -wBorderWidth((WindowPtr) pDraw) ||
x + w > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->width ||
y < -wBorderWidth((WindowPtr) pDraw) ||
y + h > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height)
/* check for being onscreen and inside of border */
if (screenInfo.screens[0]->x + pDraw->x + x < 0 ||
screenInfo.screens[0]->x + pDraw->x + x + w > PanoramiXPixWidth ||
screenInfo.screens[0]->y + pDraw->y + y < 0 ||
screenInfo.screens[0]->y + pDraw->y + y + h > PanoramiXPixHeight ||
x < -wBorderWidth((WindowPtr) pDraw) ||
x + w > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->width ||
y < -wBorderWidth((WindowPtr) pDraw) ||
y + h > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height)
return BadMatch;
}