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:
mirko 2009-04-12 23:23:27 +00:00
parent 152823d616
commit e029d94bb9

View 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);