From ac460e6836bdd2cd16c9d29743376c16fdc6924e Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Tue, 7 May 2013 22:41:31 +0200 Subject: exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr Signed-off-by: Tormod Volden --- src/savage_exa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3