aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2012-07-17 11:57:42 +0000
committerPierre Ossman <ossman@cendio.se>2012-07-17 11:57:42 +0000
commitae3438ce58121afaa31c976accbee871d15b3a26 (patch)
treef0c54dd921a3ccc16df4285e4fc019817301756f /unix
parentaae3891bc7380c23322214b9e2781b636c3d7199 (diff)
downloadtigervnc-ae3438ce58121afaa31c976accbee871d15b3a26.tar.gz
tigervnc-ae3438ce58121afaa31c976accbee871d15b3a26.zip
The internal API for RRCrtcNotify() changed in Xorg 1.6+, so make sure things
work on those versions as well. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4936 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/xvnc.cc21
1 files changed, 19 insertions, 2 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc
index a65fc49b..4a69d752 100644
--- a/unix/xserver/hw/vnc/xvnc.cc
+++ b/unix/xserver/hw/vnc/xvnc.cc
@@ -1116,6 +1116,9 @@ static Bool vncRandRScreenSetSize(ScreenPtr pScreen,
if ((crtc->x >= width) || (crtc->y >= height)) {
/* Disable it */
ret = RRCrtcNotify(crtc, NULL, crtc->x, crtc->y, crtc->rotation,
+#if XORG >= 16
+ NULL,
+#endif
crtc->numOutputs, crtc->outputs);
if (!ret)
ErrorF("Warning: Unable to disable CRTC that is outside of new screen dimensions");
@@ -1131,6 +1134,9 @@ static Bool vncRandRScreenSetSize(ScreenPtr pScreen,
}
ret = RRCrtcNotify(crtc, mode, crtc->x, crtc->y, crtc->rotation,
+#if XORG >= 16
+ NULL,
+#endif
crtc->numOutputs, crtc->outputs);
RRModeDestroy(mode);
if (!ret)
@@ -1147,7 +1153,11 @@ static Bool vncRandRCrtcSet(ScreenPtr pScreen, RRCrtcPtr crtc, RRModePtr mode,
Bool ret;
/* Let RandR know we approve, and let it update its internal state */
- ret = RRCrtcNotify(crtc, mode, x, y, rotation, num_outputs, outputs);
+ ret = RRCrtcNotify(crtc, mode, x, y, rotation,
+#if XORG >= 16
+ NULL,
+#endif
+ num_outputs, outputs);
if (!ret)
return FALSE;
@@ -1217,7 +1227,11 @@ static RRCrtcPtr vncRandRCrtcCreate(ScreenPtr pScreen)
RROutputSetConnection(output, RR_Connected);
/* Make sure the CRTC has this output set */
- RRCrtcNotify(crtc, NULL, 0, 0, RR_Rotate_0, 1, &output);
+ RRCrtcNotify(crtc, NULL, 0, 0, RR_Rotate_0,
+#if XORG >= 16
+ NULL,
+#endif
+ 1, &output);
/* Populate a list of default modes */
RRModePtr modes[sizeof(vncRandRWidths)/sizeof(*vncRandRWidths)];
@@ -1272,6 +1286,9 @@ static Bool vncRandRInit(ScreenPtr pScreen)
return FALSE;
RRCrtcNotify(crtc, mode, 0, 0, RR_Rotate_0,
+#if XORG >= 16
+ NULL,
+#endif
crtc->numOutputs, crtc->outputs);
return TRUE;