Don't try to get randr rotation if randr is not initalised.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15222 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -21,7 +21,7 @@ index 3eba078..6091006 100644
|
|||||||
int ret;
|
int ret;
|
||||||
int x,y;
|
int x,y;
|
||||||
+ ScrnInfoPtr pScrn = xf86Screens[priv->screen_num];
|
+ 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);
|
ret = ts_read(priv->ts, &samp, 1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user