diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 737f11c..cc3215f 100644
a
|
b
|
DUMMYPreInit(ScrnInfoPtr pScrn, int flags) |
313 | 313 | case 15: |
314 | 314 | case 16: |
315 | 315 | case 24: |
| 316 | case 30: |
316 | 317 | break; |
317 | 318 | default: |
318 | 319 | xf86DrvMsg(pScrn->scrnIndex, X_ERROR, |
… |
… |
DUMMYPreInit(ScrnInfoPtr pScrn, int flags) |
327 | 328 | pScrn->rgbBits = 8; |
328 | 329 | |
329 | 330 | /* Get the depth24 pixmap format */ |
330 | | if (pScrn->depth == 24 && pix24bpp == 0) |
331 | | pix24bpp = xf86GetBppFromDepth(pScrn, 24); |
| 331 | if (pScrn->depth >= 24 && pix24bpp == 0) |
| 332 | pix24bpp = xf86GetBppFromDepth(pScrn, pScrn->depth); |
332 | 333 | |
333 | 334 | /* |
334 | 335 | * This must happen after pScrn->display has been set because |