1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

colorkey enabled ... until colorkey is correctly supported in vidix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4854 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-02-25 02:05:30 +00:00
parent 54ae2281a6
commit 3605aa4ec8

View File

@ -543,7 +543,34 @@ static void mach64_vid_display_video( void )
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);