mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
fixed colorkey enabling/disabling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11166 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
206ad4bfef
commit
2a256e2f16
@ -847,13 +847,13 @@ int vixSetGrKeys( const vidix_grkey_t * grkey){
|
||||
{
|
||||
info->use_colorkey = 0;
|
||||
printf("[nvidia_vid] colorkeying disabled\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
else {
|
||||
info->use_colorkey = 1;
|
||||
info->vidixcolorkey = ((grkey->ckey.red<<16)|(grkey->ckey.green<<8)|grkey->ckey.blue);
|
||||
printf("[nvidia_vid] set colorkey 0x%x\n",info->vidixcolorkey);
|
||||
rivatv_overlay_colorkey(info,info->vidixcolorkey);
|
||||
}
|
||||
rivatv_overlay_start(info,0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user