]> source.dussan.org Git - tigervnc.git/commitdiff
X.Org 1.6 compatibility change in RandR related code (RRGetInfo takes two
authorAdam Tkac <atkac@redhat.com>
Thu, 26 Mar 2009 14:11:51 +0000 (14:11 +0000)
committerAdam Tkac <atkac@redhat.com>
Thu, 26 Mar 2009 14:11:51 +0000 (14:11 +0000)
parameters instead of one).

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3722 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/XserverDesktop.cc

index 9554ed8d578b6e2e40922b3f38d7f50e7154e060..f192b8a745aa39830e6759543c99ff51941b9bc2 100644 (file)
@@ -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;