diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_xv.c | 1 | ||||
-rw-r--r-- | libvo/x11_common.c | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 9fbaea74ad..5affbdb2d9 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -426,7 +426,6 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, panscan_calc(); - XClearWindow(mDisplay, vo_window); #if 0 #ifdef HAVE_SHM if (Shmem_Flag) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index b0dd506cec..6d455d8f48 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -2407,11 +2407,12 @@ int vo_xv_init_colorkey() } } + xv_atom = xv_intern_atom_if_exists( "XV_AUTOPAINT_COLORKEY" ); + /* should we draw the colorkey ourselves or activate autopainting? */ if ( xv_ck_info.method == CK_METHOD_AUTOPAINT ) { rez = !Success; // reset rez to something different than Success - xv_atom = xv_intern_atom_if_exists( "XV_AUTOPAINT_COLORKEY" ); if ( xv_atom != None ) // autopaint is supported { @@ -2424,6 +2425,13 @@ int vo_xv_init_colorkey() xv_ck_info.method = CK_METHOD_MANUALFILL; } } + else // disable colorkey autopainting if supported + { + if ( xv_atom != None ) // we have autopaint attribute + { + XvSetPortAttribute( mDisplay, xv_port, xv_atom, 0 ); + } + } } else // do no colorkey drawing at all { |