summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/driver.c b/src/driver.c
index 34ce6ed..05fc56a 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -721,7 +721,7 @@ msShadowInit(ScreenPtr pScreen)
}
static Bool
-msSetSharedPixmapBacking(PixmapPtr ppix, int fd_handle)
+msSetSharedPixmapBacking(PixmapPtr ppix, void *fd_handle)
{
ScreenPtr screen = ppix->drawable.pScreen;
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
@@ -729,8 +729,9 @@ msSetSharedPixmapBacking(PixmapPtr ppix, int fd_handle)
Bool ret;
int r;
int size = ppix->devKind * ppix->drawable.height;
+ int ihandle = (int)(long)fd_handle;
- ret = drmmode_SetSlaveBO(ppix, &ms->drmmode, fd_handle, ppix->devKind, size);
+ ret = drmmode_SetSlaveBO(ppix, &ms->drmmode, ihandle, ppix->devKind, size);
if (ret == FALSE)
return ret;