diff options
Diffstat (limited to 'xorg/server/module/rdpPixmap.h')
-rw-r--r-- | xorg/server/module/rdpPixmap.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/xorg/server/module/rdpPixmap.h b/xorg/server/module/rdpPixmap.h index 8456593f..7fce3186 100644 --- a/xorg/server/module/rdpPixmap.h +++ b/xorg/server/module/rdpPixmap.h @@ -1,5 +1,5 @@ /* -Copyright 2005-2013 Jay Sorg +Copyright 2005-2014 Jay Sorg Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that @@ -24,9 +24,25 @@ pixmap calls #ifndef __RDPPIXMAP_H #define __RDPPIXAMP_H +#include <xorg-server.h> +#include <xorgVersion.h> + +#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 5, 0, 0, 0) +/* 1.1, 1.2, 1.3, 1.4 */ +#define XRDP_PIX 1 +#else +/* 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12 */ +#define XRDP_PIX 2 +#endif + +#if XRDP_PIX == 2 PixmapPtr rdpCreatePixmap(ScreenPtr pScreen, int width, int height, int depth, unsigned usage_hint); +#else +PixmapPtr +rdpCreatePixmap(ScreenPtr pScreen, int width, int height, int depth); +#endif Bool rdpDestroyPixmap(PixmapPtr pPixmap); Bool |