diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-07-28 01:28:36 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-07-28 01:28:36 +0100 |
commit | 839e7e06a1e24c66233b77b50e454b286caadf93 (patch) | |
tree | de24a67c80b4cbd6a65a1d5994b6db09ac0bf8d1 /src/glamo-kms-driver.c | |
parent | cbbb356da7f4384c812c9db230657097992da1e7 (diff) |
De-crashify a few things
Diffstat (limited to 'src/glamo-kms-driver.c')
-rw-r--r-- | src/glamo-kms-driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glamo-kms-driver.c b/src/glamo-kms-driver.c index c92e4d6..bc4d933 100644 --- a/src/glamo-kms-driver.c +++ b/src/glamo-kms-driver.c @@ -212,8 +212,8 @@ Bool GlamoKMSPreInit(ScrnInfoPtr pScrn, int flags) pScrn->progClock = TRUE; pScrn->rgbBits = 8; - if ( !xf86SetDepthBpp(pScrn, 0, 0, 0, PreferConvert24to32 - | SupportConvert24to32 | Support32bppFb) ) { + /* Prefer 16bpp for everything */ + if ( !xf86SetDepthBpp(pScrn, 16, 16, 16, NoDepth24Support) ) { return FALSE; } @@ -341,6 +341,7 @@ Bool GlamoKMSScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, } pScrn->pScreen = pScreen; + pGlamo->pScreen = pScreen; /* HW dependent - FIXME */ pScrn->displayWidth = pScrn->virtualX; |