xpra icon
Bug tracker and wiki

Ticket #909: dummy-30bpp.patch

File dummy-30bpp.patch, 766 bytes (added by Antoine Martin, 4 years ago)

changes needed to dummy driver for supporting 30bpp mode

  • src/dummy_driver.c

    diff --git a/src/dummy_driver.c b/src/dummy_driver.c
    index 737f11c..cc3215f 100644
    a b DUMMYPreInit(ScrnInfoPtr pScrn, int flags) 
    313313       case 15:
    314314       case 16:
    315315       case 24:
     316        case 30:
    316317           break;
    317318       default:
    318319           xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
    DUMMYPreInit(ScrnInfoPtr pScrn, int flags) 
    327328       pScrn->rgbBits = 8;
    328329
    329330    /* 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);
    332333
    333334    /*
    334335     * This must happen after pScrn->display has been set because