From dfecff4279b42a20ee1d186bfe49f5e2e3a53648 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 15 Mar 2012 15:13:51 +0000 Subject: Xinerama: Fix up obnoxiously-indented code Comments inside of conditionals confuse indent to death. Which is fair enough really. Signed-off-by: Daniel Stone (cherry picked from commit 58b1f739d73b03ff7952ca986ed8746a7307fffe) --- Xext/panoramiXprocs.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'Xext') diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c index 6a91e35d0..7fb578b71 100644 --- a/Xext/panoramiXprocs.c +++ b/Xext/panoramiXprocs.c @@ -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; } -- cgit v1.2.3