2006-10-05 02:04:23 +00:00
|
|
|
--- xorg-server-1.1.1/miext/cw/cw_ops.c.graphics-expose 2006-07-05 20:23:57.000000000 -0400
|
|
|
|
+++ xorg-server-1.1.1/miext/cw/cw_ops.c 2006-10-04 22:01:13.000000000 -0400
|
2006-10-05 01:22:18 +00:00
|
|
|
@@ -30,6 +30,7 @@
|
|
|
|
#include "gcstruct.h"
|
|
|
|
#include "pixmapstr.h"
|
|
|
|
#include "cw.h"
|
|
|
|
+#include "mi.h"
|
|
|
|
|
|
|
|
#define SETUP_BACKING_DST(_pDst, _pGC) \
|
|
|
|
cwGCPtr pGCPrivate = getCwGC (_pGC); \
|
2006-10-05 02:04:23 +00:00
|
|
|
@@ -184,56 +185,46 @@
|
2006-10-05 01:22:18 +00:00
|
|
|
cwCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy,
|
|
|
|
int w, int h, int dstx, int dsty)
|
|
|
|
{
|
|
|
|
- int odstx, odsty;
|
|
|
|
- RegionPtr exposed = NULL;
|
|
|
|
SETUP_BACKING_DST(pDst, pGC);
|
|
|
|
SETUP_BACKING_SRC(pSrc, pGC);
|
|
|
|
|
|
|
|
PROLOGUE(pGC);
|
|
|
|
|
|
|
|
- odstx = dstx;
|
|
|
|
- odsty = dsty;
|
2006-10-05 02:04:23 +00:00
|
|
|
CW_OFFSET_XY_DST(dstx, dsty);
|
|
|
|
CW_OFFSET_XY_SRC(srcx, srcy);
|
2006-10-05 01:22:18 +00:00
|
|
|
-
|
|
|
|
- exposed = (*pBackingGC->ops->CopyArea)(pBackingSrc, pBackingDst,
|
|
|
|
- pBackingGC, srcx, srcy, w, h,
|
|
|
|
- dstx, dsty);
|
|
|
|
-
|
|
|
|
- if (exposed != NULL)
|
|
|
|
- REGION_TRANSLATE(pDst->pScreen, exposed, odstx - dstx, odsty - dsty);
|
2006-10-05 02:04:23 +00:00
|
|
|
+
|
2006-10-05 01:22:18 +00:00
|
|
|
+ (*pBackingGC->ops->CopyArea)(pBackingSrc, pBackingDst,
|
|
|
|
+ pBackingGC, srcx, srcy, w, h,
|
|
|
|
+ dstx, dsty);
|
|
|
|
|
|
|
|
EPILOGUE(pGC);
|
|
|
|
|
|
|
|
- return exposed;
|
|
|
|
+ return miHandleExposures (pSrc, pDst, pBackingGC,
|
|
|
|
+ srcx, srcy, w, h,
|
|
|
|
+ dstx, dsty, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static RegionPtr
|
|
|
|
cwCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC, int srcx, int srcy,
|
|
|
|
int w, int h, int dstx, int dsty, unsigned long plane)
|
|
|
|
{
|
|
|
|
- int odstx, odsty;
|
|
|
|
- RegionPtr exposed = NULL;
|
|
|
|
SETUP_BACKING_DST(pDst, pGC);
|
|
|
|
SETUP_BACKING_SRC(pSrc, pGC);
|
|
|
|
|
|
|
|
PROLOGUE(pGC);
|
|
|
|
|
|
|
|
- odstx = dstx;
|
|
|
|
- odsty = dsty;
|
2006-10-05 02:04:23 +00:00
|
|
|
CW_OFFSET_XY_DST(dstx, dsty);
|
|
|
|
CW_OFFSET_XY_SRC(srcx, srcy);
|
2006-10-05 01:22:18 +00:00
|
|
|
-
|
|
|
|
- exposed = (*pBackingGC->ops->CopyPlane)(pBackingSrc, pBackingDst,
|
|
|
|
- pBackingGC, srcx, srcy, w, h,
|
|
|
|
- dstx, dsty, plane);
|
|
|
|
-
|
|
|
|
- if (exposed != NULL)
|
|
|
|
- REGION_TRANSLATE(pDst->pScreen, exposed, odstx - dstx, odsty - dsty);
|
|
|
|
-
|
|
|
|
- EPILOGUE(pGC);
|
|
|
|
-
|
|
|
|
- return exposed;
|
2006-10-05 02:04:23 +00:00
|
|
|
+
|
2006-10-05 01:22:18 +00:00
|
|
|
+ (*pBackingGC->ops->CopyPlane)(pBackingSrc, pBackingDst,
|
|
|
|
+ pBackingGC, srcx, srcy, w, h,
|
|
|
|
+ dstx, dsty, plane);
|
|
|
|
+
|
|
|
|
+ EPILOGUE(pGC);
|
|
|
|
+
|
|
|
|
+ return miHandleExposures (pSrc, pDst, pBackingGC,
|
|
|
|
+ srcx, srcy, w, h,
|
|
|
|
+ dstx, dsty, plane);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|