summaryrefslogtreecommitdiff
path: root/hw/kdrive/fbdev
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2001-06-05 16:49:31 +0000
committerKeith Packard <keithp@keithp.com>2001-06-05 16:49:31 +0000
commita4ba10ba6ffb1c01a0df5b34669b9fb24ad0e7d9 (patch)
tree85cbe034079b57d83fd0f87af601355bfb375f15 /hw/kdrive/fbdev
parent7fcf46356ba70563f036f535e60667727db442ae (diff)
kdrive/fbdev: RandR initialization sequence change
Diffstat (limited to 'hw/kdrive/fbdev')
-rw-r--r--hw/kdrive/fbdev/fbdev.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c
index be77bc583..f9abeff18 100644
--- a/hw/kdrive/fbdev/fbdev.c
+++ b/hw/kdrive/fbdev/fbdev.c
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.16 2001/05/29 21:55:41 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.17 2001/06/03 21:52:45 keithp Exp $ */
#include "fbdev.h"
@@ -542,15 +542,18 @@ fbdevRandRSetConfig (ScreenPtr pScreen,
return TRUE;
}
-void
+Bool
fbdevRandRInit (ScreenPtr pScreen)
{
- rrScrPriv(pScreen);
+ rrScrPrivPtr pScrPriv;
+
+ if (!RRScreenInit (pScreen))
+ return FALSE;
- if (!pScrPriv)
- return;
+ pScrPriv = rrGetScrPriv(pScreen);
pScrPriv->rrGetInfo = fbdevRandRGetInfo;
pScrPriv->rrSetConfig = fbdevRandRSetConfig;
+ return TRUE;
}
#endif
@@ -579,7 +582,8 @@ fbdevInitScreen (ScreenPtr pScreen)
if (!scrpriv->pLayer)
return FALSE;
#ifdef RANDR
- fbdevRandRInit (pScreen);
+ if (!fbdevRandRInit (pScreen))
+ return FALSE;
#endif
return TRUE;
}