programs/Xserver/hw/xwin/winmultiwindowshape.c Fix off by one error (Colin
Harrison)
This commit is contained in:
parent
0e50af8b7f
commit
b4f4bf028a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user