# HG changeset patch # User michael # Date 1014586067 0 # Node ID f85d5a17d7824cf7c59180aff5aa1b242997f2e8 # Parent 13ea8fab37ddc42e38a9744fcd9af431a05512a4 colorkey support diff -r 13ea8fab37dd -r f85d5a17d782 vidix/drivers/mach64_vid.c --- 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);