Unverified Commit 995350d1 authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/shm_missing_code' into 3.6.x

parents ef0a3d63 9fb582f4
...@@ -349,12 +349,26 @@ ProcShmPutImage(client) ...@@ -349,12 +349,26 @@ ProcShmPutImage(client)
fprintf(stderr, "ProcShmPutImage: Calling (*shmFuncs[pDraw->pScreen->myNum]->PutImage)().\n"); fprintf(stderr, "ProcShmPutImage: Calling (*shmFuncs[pDraw->pScreen->myNum]->PutImage)().\n");
#endif #endif
(*shmFuncs[pDraw->pScreen->myNum]->PutImage)( if ((((stuff->format == ZPixmap) && (stuff->srcX == 0)) ||
pDraw, pGC, stuff->depth, stuff->format, ((stuff->format != ZPixmap) &&
stuff->totalWidth, stuff->totalHeight, (stuff->srcX < screenInfo.bitmapScanlinePad) &&
stuff->srcX, stuff->srcY, ((stuff->format == XYBitmap) ||
stuff->srcWidth, stuff->srcHeight, ((stuff->srcY == 0) &&
stuff->dstX, stuff->dstY, (stuff->srcHeight == stuff->totalHeight))))) &&
((stuff->srcX + stuff->srcWidth) == stuff->totalWidth))
(*pGC->ops->PutImage) (pDraw, pGC, stuff->depth,
stuff->dstX, stuff->dstY,
stuff->totalWidth, stuff->srcHeight,
stuff->srcX, stuff->format,
shmdesc->addr + stuff->offset +
(stuff->srcY * length));
else
(*shmFuncs[pDraw->pScreen->myNum]->PutImage)(
pDraw, pGC, stuff->depth, stuff->format,
stuff->totalWidth, stuff->totalHeight,
stuff->srcX, stuff->srcY,
stuff->srcWidth, stuff->srcHeight,
stuff->dstX, stuff->dstY,
shmdesc->addr + stuff->offset); shmdesc->addr + stuff->offset);
if (stuff->sendEvent) if (stuff->sendEvent)
...@@ -364,7 +378,6 @@ ProcShmPutImage(client) ...@@ -364,7 +378,6 @@ ProcShmPutImage(client)
memset(&ev, 0, sizeof(xShmCompletionEvent)); memset(&ev, 0, sizeof(xShmCompletionEvent));
ev.type = ShmCompletionCode; ev.type = ShmCompletionCode;
ev.drawable = stuff->drawable; ev.drawable = stuff->drawable;
ev.sequenceNumber = client->sequence;
ev.minorEvent = X_ShmPutImage; ev.minorEvent = X_ShmPutImage;
ev.majorEvent = ShmReqCode; ev.majorEvent = ShmReqCode;
ev.shmseg = stuff->shmseg; ev.shmseg = stuff->shmseg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment