diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-03-15 15:13:51 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-03-21 14:02:24 -0700 |
commit | 58b1f739d73b03ff7952ca986ed8746a7307fffe (patch) | |
tree | 37cab9e8e003e81914e87c8b53ef6f296f3a65f2 /Xext/panoramiXprocs.c | |
parent | 9838b7032ea9792bec21af424c53c07078636d21 (diff) |
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>
Diffstat (limited to 'Xext/panoramiXprocs.c')
-rw-r--r-- | Xext/panoramiXprocs.c | 26 |
1 files changed, 12 insertions, 14 deletions
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; } |