[Y-devel] fbdev driver patch

Aaron drizzt321 at phpfreaks.com
Fri Feb 20 06:25:56 GMT 2004


jhamby in #y-windows found a bug in the fbdev driver that didn't let it 
get the color map correctly. The following attached patch fixes this. 
Unfortunately this patch seems to only work with -depth 32.

Aaron
----------------------------------------
https://www.darkobjects.net/~drizzt/y-base
-------------- next part --------------
*** modules/drivers/video/fbdev/fbdev.c.orig    2004-01-29 13:30:13.000000000 -0800
--- modules/drivers/video/fbdev/fbdev.c 2004-02-19 21:52:32.601953647 -0800
***************
*** 642,650 ****
--- 642,653 ----
        return 1;
      }
  
+   data -> old_cmap.start = 0;
+   data -> old_cmap.len = 256;
    data -> old_cmap.red = data -> old_red;
    data -> old_cmap.green = data -> old_green;
    data -> old_cmap.blue = data -> old_blue;
+   data -> old_cmap.transp = 0;
  
    /* get frame buffer settings */
    if (ioctl (data -> fbfd, FBIOGET_FSCREENINFO, &(data -> fscreeninfo)) < 0)
***************
*** 742,747 ****
--- 745,751 ----
    data -> cmap.red = data -> red;
    data -> cmap.green = data -> green;
    data -> cmap.blue = data -> blue;
+   data -> cmap.transp = 0;
    {
      uint16_t * red_p = data -> cmap.red;
      uint16_t * green_p = data -> cmap.green;


More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved