diff options
author | root <root@zombrain.(none)> | 2011-07-26 08:00:09 (GMT) |
---|---|---|
committer | root <root@zombrain.(none)> | 2011-07-26 08:00:09 (GMT) |
commit | 412d34fed2acd2d3d8cbb2b37e735501803ae779 (patch) | |
tree | f155c79fbc71357d329a3b9356c369e337e54612 /hw | |
parent | 2910031a622b5b0b31bb61b9974c8f26e7cf6126 (diff) |
fake color bitfields
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/fbdevhw/fbdevhw.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index 2cad91b..0046a35 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -365,10 +365,18 @@ fbdev_rf_fake(fbdevHWPtr fPtr) { fPtr->var.yoffset = 0; fPtr->var.bits_per_pixel = 32; fPtr->var.grayscale = 0; - /* fPtr->var.red = ?; */ - /* fPtr->var.green = ?; */ - /* fPtr->var.blue = ?; */ - /* fPtr->var.transp = ?; */ + fPtr->red.offset = 16; + fPtr->red.length = 8; + fPtr->red.msb_right = 0; + fPtr->green.offset = 8; + fPtr->green.length = 8; + fPtr->green.msb_right = 0; + fPtr->blue.offset = 0; + fPtr->blue.length = 8; + fPtr->blue.msb_right = 0; + fPtr->transp.offset = 0; + fPtr->transp.length = 0; + fPtr->transp.msb_right = 0; fPtr->var.nonstd = 0; fPtr->var.activate = FB_ACTIVATE_NOW; fPtr->var.height = -1; @@ -477,7 +485,6 @@ fbdevHWInit(ScrnInfoPtr pScrn, struct pci_device * pPci, char *device) /* get current fb device settings */ if (fPtr->rf) { // HU fbdev_rf_fake(fPtr); - fbdev_rf_fake(fPtr); } else { if (-1 == ioctl(fPtr->fd,FBIOGET_FSCREENINFO,(void*)(&fPtr->fix))) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, |