patch-2.4.23 linux-2.4.23/drivers/video/fbcmap.c

Next file: linux-2.4.23/drivers/video/q40fb.c
Previous file: linux-2.4.23/drivers/video/aty128fb.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/video/fbcmap.c linux-2.4.23/drivers/video/fbcmap.c
@@ -271,7 +271,7 @@
 	    hred = *red;
 	    hgreen = *green;
 	    hblue = *blue;
-	    htransp = transp ? *transp : 0;
+	    htransp = transp ? *transp : 0xffff;
 	} else {
 	    get_user(hred, red);
 	    get_user(hgreen, green);
@@ -279,7 +279,7 @@
 	    if (transp)
 		get_user(htransp, transp);
 	    else
-		htransp = 0;
+		htransp = 0xffff;
 	}
 	red++;
 	green++;

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