summaryrefslogtreecommitdiffstats
path: root/unix/xserver
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2009-03-26 14:11:51 +0000
committerAdam Tkac <atkac@redhat.com>2009-03-26 14:11:51 +0000
commit59288c3e548b429e1ee8244ad1b7d561056ae65e (patch)
tree0120091a77bcee1823930da8986d883dbcdac2ca /unix/xserver
parentfa11a652857087527bc660c8ef6457d03497a62a (diff)
downloadtigervnc-59288c3e548b429e1ee8244ad1b7d561056ae65e.tar.gz
tigervnc-59288c3e548b429e1ee8244ad1b7d561056ae65e.zip
X.Org 1.6 compatibility change in RandR related code (RRGetInfo takes two
parameters instead of one). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3722 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/xserver')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 9554ed8d..f192b8a7 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -842,7 +842,11 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
RRModePtr mode;
// Make sure all RandR tables are properly populated
+#ifdef XORG_15
ret = RRGetInfo(pScreen);
+#else
+ ret = RRGetInfo(pScreen, FALSE);
+#endif
if (!ret)
return resultNoResources;