Don't try to get randr rotation if randr is not initalised.
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Apr 2009 23:23:27 +0000 (23:23 +0000)
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 12 Apr 2009 23:23:27 +0000 (23:23 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15222 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 4ea7c7f..bddeffb 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);