diff options
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r-- | libvo/vo_fbdev.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index f2f7e1c3d3..b9c61713b4 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -42,6 +42,7 @@ LIBVO_EXTERN(fbdev) #ifdef CONFIG_VIDIX /* Name of VIDIX driver */ static const char *vidix_name = NULL; +static vidix_grkey_t gr_key; #endif static signed int pre_init_err = -2; /****************************** @@ -976,6 +977,21 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, } else mp_msg(MSGT_VO, MSGL_V, "Using VIDIX\n"); vidix_start(); + if (vidix_grkey_support()) + { + vidix_grkey_get(&gr_key); + gr_key.key_op = KEYS_PUT; + if (vo_colorkey != 0xff000000) + { + gr_key.ckey.op = CKEY_TRUE; + gr_key.ckey.red = (vo_colorkey & 0x00ff0000) >> 16; + gr_key.ckey.green = (vo_colorkey & 0x0000ff00) >> 8; + gr_key.ckey.blue = vo_colorkey & 0x000000ff; + } + else + gr_key.ckey.op = CKEY_FALSE; + vidix_grkey_set(&gr_key); + } } else #endif |