[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.10,1.11

Michael Niedermayer michael at mplayer.dev.hu
Sun Feb 24 22:27:49 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv31602

Modified Files:
	mach64_vid.c 
Log Message:
colorkey support


Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- mach64_vid.c	24 Feb 2002 18:31:14 -0000	1.10
+++ mach64_vid.c	24 Feb 2002 21:27:47 -0000	1.11
@@ -530,6 +530,20 @@
 // bit 8-27 no effect
 // bit 28-31 nothing interresting just crashed my system when i played with them  :(
 
+    mach64_fifo_wait(3);
+    if(besr.ckey_on)
+    {
+	OUTREG(OVERLAY_GRAPHICS_KEY_MSK, besr.graphics_key_msk);
+	OUTREG(OVERLAY_GRAPHICS_KEY_CLR, besr.graphics_key_clr);
+	OUTREG(OVERLAY_KEY_CNTL,0x50);
+    }
+    else
+    {
+	OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0ULL);
+	OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0ULL);
+	OUTREG(OVERLAY_KEY_CNTL,0x50);
+    }
+
     mach64_wait_for_idle();
     vf = INREG(VIDEO_FORMAT);
 




More information about the MPlayer-cvslog mailing list