summaryrefslogtreecommitdiffstats
path: root/xorg/server/xrdpdev
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-28 16:07:36 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-28 16:07:36 -0800
commitb4b73056fc8c119beb032d20fc763bc40af3efa9 (patch)
treeeb9d5cc39cd6a46cf8e335afb4ae82f4ae963c58 /xorg/server/xrdpdev
parent97070b6fd90bcf48da805c42f8e0103831c5752a (diff)
downloadxrdp-proprietary-b4b73056fc8c119beb032d20fc763bc40af3efa9.tar.gz
xrdp-proprietary-b4b73056fc8c119beb032d20fc763bc40af3efa9.zip
xorg: fixes for building with xserver v1.13+
Diffstat (limited to 'xorg/server/xrdpdev')
-rw-r--r--xorg/server/xrdpdev/xrdpdev.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/xorg/server/xrdpdev/xrdpdev.c b/xorg/server/xrdpdev/xrdpdev.c
index 33756389..7e5959ba 100644
--- a/xorg/server/xrdpdev/xrdpdev.c
+++ b/xorg/server/xrdpdev/xrdpdev.c
@@ -411,7 +411,11 @@ rdpWakeupHandler1(pointer blockData, int result, pointer pReadmask)
/*****************************************************************************/
static Bool
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
+#else
+rdpScreenInit(ScreenPtr pScreen, int argc, char **argv)
+#endif
{
ScrnInfoPtr pScrn;
rdpPtr dev;
@@ -419,7 +423,7 @@ rdpScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
Bool vis_found;
PictureScreenPtr ps;
- pScrn = xf86Screens[scrnIndex];
+ pScrn = xf86Screens[pScreen->myNum];
dev = XRDPPTR(pScrn);
dev->pScreen = pScreen;
@@ -556,7 +560,11 @@ rdpScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
/*****************************************************************************/
static Bool
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpSwitchMode(int a, DisplayModePtr b, int c)
+#else
+rdpSwitchMode(ScrnInfoPtr a, DisplayModePtr b)
+#endif
{
LLOGLN(0, ("rdpSwitchMode:"));
return TRUE;
@@ -564,14 +572,22 @@ rdpSwitchMode(int a, DisplayModePtr b, int c)
/*****************************************************************************/
static void
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpAdjustFrame(int a, int b, int c, int d)
+#else
+rdpAdjustFrame(ScrnInfoPtr a, int b, int c)
+#endif
{
LLOGLN(10, ("rdpAdjustFrame:"));
}
/*****************************************************************************/
static Bool
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpEnterVT(int a, int b)
+#else
+rdpEnterVT(ScrnInfoPtr a)
+#endif
{
LLOGLN(0, ("rdpEnterVT:"));
return TRUE;
@@ -579,14 +595,22 @@ rdpEnterVT(int a, int b)
/*****************************************************************************/
static void
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpLeaveVT(int a, int b)
+#else
+rdpLeaveVT(ScrnInfoPtr a)
+#endif
{
LLOGLN(0, ("rdpLeaveVT:"));
}
/*****************************************************************************/
static ModeStatus
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 13, 0, 0, 0)
rdpValidMode(int a, DisplayModePtr b, Bool c, int d)
+#else
+rdpValidMode(ScrnInfoPtr a, DisplayModePtr b, Bool c, int d)
+#endif
{
LLOGLN(0, ("rdpValidMode:"));
return 0;