mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
exa: fix thinko from 988725f32e
- the drawable of the pixmap is not the same as the original drawable (possibly a DRAWABLE_WINDOW)
This commit is contained in:
parent
7c14fdbacf
commit
dd1e54d6ee
4 changed files with 8 additions and 8 deletions
|
|
@ -53,9 +53,9 @@
|
|||
* because their calls are wrapped by the damage layer.
|
||||
*/
|
||||
Bool
|
||||
exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region)
|
||||
exaDamageDestForMigration(DrawablePtr pDrawable, PixmapPtr pPix, RegionPtr region)
|
||||
{
|
||||
ScreenPtr pScreen = pPix->drawable.pScreen;
|
||||
ScreenPtr pScreen = pDrawable->pScreen;
|
||||
(void) pScreen; /* the macros don't use pScreen currently */
|
||||
ExaPixmapPriv (pPix);
|
||||
int x_offset, y_offset;
|
||||
|
|
@ -64,7 +64,7 @@ exaDamageDestForMigration(PixmapPtr pPix, RegionPtr region)
|
|||
if (!pExaPixmap->pDamage)
|
||||
return FALSE;
|
||||
|
||||
exaGetDrawableDeltas(&pPix->drawable, pPix, &x_offset, &y_offset);
|
||||
exaGetDrawableDeltas(pDrawable, pPix, &x_offset, &y_offset);
|
||||
|
||||
REGION_TRANSLATE(pScreen, region, x_offset, y_offset);
|
||||
pending_damage = DamagePendingRegion(pExaPixmap->pDamage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue