summaryrefslogtreecommitdiff
path: root/exa/exa_accel.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-26 16:54:29 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-26 17:56:40 +0200
commit988725f32e082aee9392a71464125157a83d1e67 (patch)
tree82b0df5ca8e244617285d8ca662b92e66efa9b66 /exa/exa_accel.c
parentce193476808f54d946351458361c62132d81b62f (diff)
exa: move destination damage for internal calls to a special function
- This should improve clarity for someone who isn't familiar with the code.
Diffstat (limited to 'exa/exa_accel.c')
-rw-r--r--exa/exa_accel.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 8ac21b8f8..d586fd804 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -300,7 +300,6 @@ exaShmPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth, unsigned int format,
BoxRec box = { .x1 = pDrawable->x + dx, .y1 = pDrawable->y + dy,
.x2 = pDrawable->x + dx + sw, .y2 = pDrawable->y + dy + sh };
RegionRec region;
- int xoff, yoff;
RegionPtr pending_damage = NULL;
if (pExaPixmap->pDamage)
@@ -308,11 +307,7 @@ exaShmPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth, unsigned int format,
if (pending_damage) {
REGION_INIT(pScreen, &region, &box, 1);
-
- exaGetDrawableDeltas(pDrawable, pPixmap, &xoff, &yoff);
-
- REGION_TRANSLATE(pScreen, &region, xoff, yoff);
- REGION_UNION(pScreen, pending_damage, pending_damage, &region);
+ exaDamageDestForMigration(pPixmap, &region);
}
if (!exaDoShmPutImage(pDrawable, pGC, depth, format, w, h, sx, sy, sw, sh,
@@ -328,9 +323,7 @@ exaShmPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth, unsigned int format,
}
if (pending_damage) {
- REGION_TRANSLATE(pScreen, &region, -xoff, -yoff);
DamageDamageRegion(pDrawable, &region);
-
REGION_UNINIT(pScreen, &region);
}
}