changeset 4851:f85d5a17d782

colorkey support
author michael
date Sun, 24 Feb 2002 21:27:47 +0000
parents 13ea8fab37dd
children 534e7b5aaadb
files vidix/drivers/mach64_vid.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/mach64_vid.c	Sun Feb 24 21:22:12 2002 +0000
+++ b/vidix/drivers/mach64_vid.c	Sun Feb 24 21:27:47 2002 +0000
@@ -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);