diff options
-rw-r--r-- | src/lx_display.c | 6 | ||||
-rw-r--r-- | src/lx_output.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lx_display.c b/src/lx_display.c index d34a25f..ca6fed1 100644 --- a/src/lx_display.c +++ b/src/lx_display.c @@ -389,7 +389,13 @@ lx_create_bo_pixmap(ScreenPtr pScreen, { PixmapPtr pixmap; + +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,5,0,0,0) pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth, 0); +#else + pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth); +#endif + if (!pixmap) return NULL; if (!(*pScreen->ModifyPixmapHeader)(pixmap, width, height, diff --git a/src/lx_output.c b/src/lx_output.c index cd1809b..6e36426 100644 --- a/src/lx_output.c +++ b/src/lx_output.c @@ -247,10 +247,12 @@ lx_output_destroy(xf86OutputPtr output) output->driver_private = NULL; } +#ifdef RANDR_GET_CRTC_INTERFACE static xf86CrtcPtr lx_output_get_crtc(xf86OutputPtr output) { return output->crtc; } +#endif static const xf86OutputFuncsRec lx_output_funcs = { @@ -265,7 +267,9 @@ static const xf86OutputFuncsRec lx_output_funcs = { .commit = lx_output_commit, .detect = lx_output_detect, .get_modes = lx_output_get_modes, +#ifdef RANDR_GET_CRTC_INTERFACE .get_crtc = lx_output_get_crtc, +#endif .set_property = lx_output_set_property, .destroy = lx_output_destroy, }; |