]> git.pld-linux.org Git - packages/kernel.git/blob - linux-tdfxfb-fillrect.patch
- CSZ scheduler removed from kernel tree.
[packages/kernel.git] / linux-tdfxfb-fillrect.patch
1 This fixes background used for "clear" terminal commands (^[[J, ^[[K etc.)
2 in 16/24/32bpp modes.
3
4         -- Jakub Bogusz <qboosh@pld-linux.org>
5
6 --- linux-2.6.0-test2/drivers/video/tdfxfb.c.orig       2003-07-30 08:31:57.000000000 +0200
7 +++ linux-2.6.0-test2/drivers/video/tdfxfb.c    2003-07-31 00:44:26.000000000 +0200
8 @@ -890,7 +890,11 @@
9  
10         banshee_make_room(par, 5);
11         tdfx_outl(par,  DSTFORMAT, fmt);
12 -       tdfx_outl(par,  COLORFORE, rect->color);
13 +       if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR) {
14 +               tdfx_outl(par,  COLORFORE, rect->color);
15 +       } else { /* FB_VISUAL_TRUECOLOR */
16 +               tdfx_outl(par, COLORFORE, ((u32*)(info->pseudo_palette))[rect->color]);
17 +       }
18         tdfx_outl(par,  COMMAND_2D, COMMAND_2D_FILLRECT | (tdfx_rop << 24));
19         tdfx_outl(par,  DSTSIZE,    rect->width | (rect->height << 16));
20         tdfx_outl(par,  LAUNCH_2D,  rect->dx | (rect->dy << 16));
This page took 0.028801 seconds and 3 git commands to generate.