diff mbox

[2/3] Xv overlay: set default color-key to black

Message ID 5114876d11f3facc1dd2eb23e88bf8a84d67b72b.1256562682.git.daniel.vetter@ffwll.ch (mailing list archive)
State Rejected
Headers show

Commit Message

Daniel Vetter Oct. 26, 2009, 1:15 p.m. UTC
None
diff mbox

Patch

diff --git a/src/i830_driver.c b/src/i830_driver.c
index 867047c..7f8f5d4 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -803,10 +803,7 @@  static void I830XvInit(ScrnInfoPtr scrn)
 					&(intel->colorKey))) {
 		from = X_CONFIG;
 	} else {
-		intel->colorKey =
-		    (1 << scrn->offset.red) | (1 << scrn->offset.green) |
-		    (((scrn->mask.blue >> scrn->offset.blue) - 1) <<
-		     scrn->offset.blue);
+		intel->colorKey = 0;
 		from = X_DEFAULT;
 	}
 	xf86DrvMsg(scrn->scrnIndex, from, "video overlay key set to 0x%x\n",