summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2013-10-31 22:48:18 +0100
committerTormod Volden <debian.tormod@gmail.com>2013-10-31 23:48:52 +0100
commite9109a0b04695d6971c94abe271dda2dc1a5e886 (patch)
treeba8ceaa739a09bc45f54d206b272e73a5c238267 /src
parenta77b9c5143591672fbe56f4428ced439c1f4d0f3 (diff)
mga: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mga_exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mga_exa.c b/src/mga_exa.c
index f4a6eb2..69ffa16 100644
--- a/src/mga_exa.c
+++ b/src/mga_exa.c
@@ -729,7 +729,7 @@ mgaDownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h,
{
PMGA(pSrc);
- char *src = pSrc->devPrivate.ptr;
+ char *src = (char *) exaGetPixmapFirstPixel(pSrc);
int src_pitch = exaGetPixmapPitch(pSrc);
int cpp = (pSrc->drawable.bitsPerPixel + 7) / 8;