summaryrefslogtreecommitdiff
path: root/src/savage_exa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/savage_exa.c')
-rw-r--r--src/savage_exa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/savage_exa.c b/src/savage_exa.c
index 33c08c7..fd70c0c 100644
--- a/src/savage_exa.c
+++ b/src/savage_exa.c
@@ -567,7 +567,7 @@ SavageUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h, char *src, int
Bool
SavageDownloadFromScreen(PixmapPtr pSrc, int x, int y, int w, int h, char *dst, int dst_pitch)
{
- unsigned char *src = pSrc->devPrivate.ptr;
+ unsigned char *src = (unsigned char *) exaGetPixmapFirstPixel(pSrc);
int src_pitch = exaGetPixmapPitch(pSrc);
int bpp = pSrc->drawable.bitsPerPixel;