mirror of https://github.com/mpv-player/mpv
colorkey support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4852 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d704994c43
commit
367e5bd0b8
|
@ -530,6 +530,20 @@ static void mach64_vid_display_video( void )
|
||||||
// bit 8-27 no effect
|
// bit 8-27 no effect
|
||||||
// bit 28-31 nothing interresting just crashed my system when i played with them :(
|
// 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();
|
mach64_wait_for_idle();
|
||||||
vf = INREG(VIDEO_FORMAT);
|
vf = INREG(VIDEO_FORMAT);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue