#316 Bug in xaaCpyArea.c

Other
closed
nobody
5
2003-01-12
2001-03-28
No

void
XAADoImageRead(
DrawablePtr pSrc,
DrawablePtr pDst,
GC *pGC,
RegionPtr prgnDst,
DDXPointPtr pptSrc )
{
int dstwidth;
unsigned char* pdstBase; /* start of image */
unsigned char* dstPntr; /* index into the image */
BoxPtr pbox = REGION_RECTS(prgnDst);
int nbox = REGION_NUM_RECTS(prgnDst);
XAAInfoRecPtr infoRec = GET_XAAINFORECPTR_FROM_GC(pGC);
int Bpp = pSrc->bitsPerPixel >> 3;

pdstBase = (unsigned char *)((PixmapPtr)pDst)->devPrivate.ptr;
dstwidth = (int)((PixmapPtr)pSrc)->devKind; <============ should be pDst instead of pSrc

for(; nbox; pbox++, pptSrc++, nbox--) {
dstPntr = pdstBase + (pbox->y1 * dstwidth) + (pbox->x1 * Bpp);

(*infoRec->ReadPixmap)(infoRec->pScrn, pptSrc->x, pptSrc->y,
pbox->x2 - pbox->x1, pbox->y2 - pbox->y1, dstPntr, dstwidth,
pSrc->bitsPerPixel, pSrc->depth);
}
}

Discussion

  • Michel Dänzer

    Michel Dänzer - 2001-03-29

    Logged In: YES
    user_id=34113

    This is fixed in the XFree86 CVS, let's hope it won't get
    reintroduced in the next merge. :)

     
  • Eric Anholt

    Eric Anholt - 2003-01-12

    Logged In: YES
    user_id=7685

    Fixed in current DRI CVS.

     
  • Eric Anholt

    Eric Anholt - 2003-01-12
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks