summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-10 17:44:14 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-10 18:13:30 -0800
commitab02c63fb4acb318ff4f996a84d3c623507433cb (patch)
tree686b65e4f044456211e7822f98b3d2c2c93d3520 /src
parentf7d999c336adc1f503a58c1859b6f0c48c03497b (diff)
Revert "exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr"
This reverts commit ac460e6836bdd2cd16c9d29743376c16fdc6924e. Fixes gcc error: savage_exa.c: In function ‘SavageDownloadFromScreen’: savage_exa.c:570:26: warning: cast from function call of type ‘CARD32’ {aka ‘unsigned int’} to non-matching type ‘unsigned char *’ [-Wbad-function-cast] 570 | unsigned char *src = (unsigned char *) exaGetPixmapFirstPixel(pSrc); | ^
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 fd70c0c..33c08c7 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 = (unsigned char *) exaGetPixmapFirstPixel(pSrc);
+ unsigned char *src = pSrc->devPrivate.ptr;
int src_pitch = exaGetPixmapPitch(pSrc);
int bpp = pSrc->drawable.bitsPerPixel;