diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-08-30 19:51:59 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2005-08-30 19:51:59 +0000 |
commit | b4f4bf028a88ee709f4536373de2d40b6445006e (patch) | |
tree | a9444cd85ea89928e83beaad66d862a635d1eb57 /hw/xwin | |
parent | 0e50af8b7f459aafd1d1d52414629e926167a751 (diff) |
programs/Xserver/hw/xwin/winmultiwindowshape.c Fix off by one error (Colin
Harrison)
Diffstat (limited to 'hw/xwin')
-rwxr-xr-x | hw/xwin/winmultiwindowshape.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/xwin/winmultiwindowshape.c b/hw/xwin/winmultiwindowshape.c index 7cb6a2cb9..0b9650e98 100755 --- a/hw/xwin/winmultiwindowshape.c +++ b/hw/xwin/winmultiwindowshape.c @@ -172,19 +172,19 @@ winReshapeMultiWindow (WindowPtr pWin) for (pRects = pShape, pEnd = pShape + nRects; pRects < pEnd; pRects++) { /* Create a Windows region for the X rectangle */ - hRgnRect = CreateRectRgn (pRects->x1 + iOffsetX - 1, - pRects->y1 + iOffsetY - 1, - pRects->x2 + iOffsetX - 1, - pRects->y2 + iOffsetY - 1); + hRgnRect = CreateRectRgn (pRects->x1 + iOffsetX, + pRects->y1 + iOffsetY, + pRects->x2 + iOffsetX, + pRects->y2 + iOffsetY); if (hRgnRect == NULL) { ErrorF ("winReshape - Loop CreateRectRgn (%d, %d, %d, %d) " "failed: %d\n" "\tx1: %d x2: %d xOff: %d y1: %d y2: %d yOff: %d\n", - pRects->x1 + iOffsetX - 1, - pRects->y1 + iOffsetY - 1, - pRects->x2 + iOffsetX - 1, - pRects->y2 + iOffsetY - 1, + pRects->x1 + iOffsetX, + pRects->y1 + iOffsetY, + pRects->x2 + iOffsetX, + pRects->y2 + iOffsetY, (int) GetLastError (), pRects->x1, pRects->x2, iOffsetX, pRects->y1, pRects->y2, iOffsetY); |