Don't try to get randr rotation if randr is not initalised.
authorMirko Vogt <mirko@openwrt.org>
Sun, 12 Apr 2009 23:23:27 +0000 (23:23 +0000)
committerMirko Vogt <mirko@openwrt.org>
Sun, 12 Apr 2009 23:23:27 +0000 (23:23 +0000)
SVN-Revision: 15222

Xorg/driver/xf86-input-tslib/patches/015-add-randr-support.patch

index 4ea7c7f2f1f6fa49721b89695474f08fd2822583..bddeffb959b29d9ca6b55ce4daac2c73ba83c9a1 100644 (file)
@@ -21,7 +21,7 @@ index 3eba078..6091006 100644
        int ret;
        int x,y;
 +      ScrnInfoPtr pScrn = xf86Screens[priv->screen_num];
-+      Rotation rotation = RRGetRotation(pScrn->pScreen);
++      Rotation rotation = rrGetScrPriv (pScrn->pScreen) ? RRGetRotation(pScrn->pScreen);
  
        ret = ts_read(priv->ts, &samp, 1);