patch-2.4.27 linux-2.4.27/drivers/video/riva/accel.c

Next file: linux-2.4.27/drivers/video/riva/fbdev.c
Previous file: linux-2.4.27/drivers/video/fbmem.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/video/riva/accel.c linux-2.4.27/drivers/video/riva/accel.c
@@ -300,8 +300,8 @@
 
 static inline void convert_bgcolor_16(u32 *col)
 {
-	*col = ((*col & 0x00007C00) << 9)
-             | ((*col & 0x000003E0) << 6)
+	*col = ((*col & 0x0000F800) << 8)
+             | ((*col & 0x000007E0) << 5)
              | ((*col & 0x0000001F) << 3)
              |          0xFF000000;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)