changeset 8856:b7d9b2c1faba

Fix radeon 7500 and 8500 15- and 16-bit colour key patch by James Stembridge <jstembridge@gmx.net>
author arpi
date Thu, 09 Jan 2003 18:26:38 +0000
parents 6787d02e45aa
children a2710e35e2cc
files vidix/drivers/radeon_vid.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/radeon_vid.c	Thu Jan 09 18:25:54 2003 +0000
+++ b/vidix/drivers/radeon_vid.c	Thu Jan 09 18:26:38 2003 +0000
@@ -1754,12 +1754,29 @@
 	switch(dbpp)
 	{
 	case 15:
+#ifdef RADEON
+		if(RadeonFamily == 200)
+			besr.graphics_key_clr=
+				  ((radeon_grkey.ckey.blue &0xF8))
+				| ((radeon_grkey.ckey.green&0xF8)<<8)
+				| ((radeon_grkey.ckey.red  &0xF8)<<16);
+		else
+#endif
 		besr.graphics_key_clr=
 			  ((radeon_grkey.ckey.blue &0xF8)>>3)
 			| ((radeon_grkey.ckey.green&0xF8)<<2)
 			| ((radeon_grkey.ckey.red  &0xF8)<<7);
 		break;
 	case 16:
+#ifdef RADEON
+		/* This test may be too general/specific */
+		if(RadeonFamily == 200)
+			besr.graphics_key_clr=
+				  ((radeon_grkey.ckey.blue &0xF8))
+				| ((radeon_grkey.ckey.green&0xFC)<<8)
+				| ((radeon_grkey.ckey.red  &0xF8)<<16);
+		else
+#endif
 		besr.graphics_key_clr=
 			  ((radeon_grkey.ckey.blue &0xF8)>>3)
 			| ((radeon_grkey.ckey.green&0xFC)<<3)