summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2013-05-07 22:41:31 +0200
committerTormod Volden <debian.tormod@gmail.com>2013-05-09 15:57:32 +0200
commitac460e6836bdd2cd16c9d29743376c16fdc6924e (patch)
tree3c250d7c38583ae57666f34e4279df08b8a32fdc /src
parentc30f9b4a61283f21f6bd230950f52961afa203cf (diff)
exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Diffstat (limited to 'src')
-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;