Mercurial > mplayer.hg
changeset 4853:2853640cea58
colorkey enabled ... until colorkey is correctly supported in vidix
author | michael |
---|---|
date | Mon, 25 Feb 2002 02:05:30 +0000 |
parents | 534e7b5aaadb |
children | 4a6dde59834c |
files | vidix/drivers/mach64_vid.c |
diffstat | 1 files changed, 28 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/drivers/mach64_vid.c Sun Feb 24 21:57:16 2002 +0000 +++ b/vidix/drivers/mach64_vid.c Mon Feb 25 02:05:30 2002 +0000 @@ -543,7 +543,34 @@ OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0ULL); OUTREG(OVERLAY_KEY_CNTL,0x50); } - +switch(mach64_vid_get_dbpp()) //Ugly Hack (remove me if colorkey is correctly supported in vidix) +{ +case 15: + OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0x7FFF); + OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0x7C1F); + OUTREG(OVERLAY_KEY_CNTL,0x50); + break; +case 16: + OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0xFFFF); + OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0xF81F); + OUTREG(OVERLAY_KEY_CNTL,0x50); + break; +case 24: + OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0xFFFFFF); + OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0xFF00FF); + OUTREG(OVERLAY_KEY_CNTL,0x50); + break; +case 32: + OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0xFFFFFF); + OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0xFF00FF); + OUTREG(OVERLAY_KEY_CNTL,0x50); + break; +default: + OUTREG(OVERLAY_GRAPHICS_KEY_MSK, 0); + OUTREG(OVERLAY_GRAPHICS_KEY_CLR, 0); + OUTREG(OVERLAY_KEY_CNTL,0x50); + break; +} mach64_wait_for_idle(); vf = INREG(VIDEO_FORMAT);