Mercurial > mplayer.hg
comparison libvo/vo_vdpau.c @ 31765:59949255681d
Don't allow black windows on top of VDPAU to shine through.
author | cehoyos |
---|---|
date | Tue, 27 Jul 2010 16:49:06 +0000 |
parents | 550ffba86d9c |
children | 1abfb1bfd2a6 |
comparison
equal
deleted
inserted
replaced
31764:00884af812b8 | 31765:59949255681d |
---|---|
417 | 417 |
418 /* Initialize vdpau_flip_queue, called from config() */ | 418 /* Initialize vdpau_flip_queue, called from config() */ |
419 static int win_x11_init_vdpau_flip_queue(void) | 419 static int win_x11_init_vdpau_flip_queue(void) |
420 { | 420 { |
421 VdpStatus vdp_st; | 421 VdpStatus vdp_st; |
422 VdpColor vdp_bg = { 0, 0, 0, 0 }; | 422 // {0, 0, 0, 0} makes every black window on top shine through |
423 VdpColor vdp_bg = {0.01, 0.01, 0.01, 0}; | |
423 | 424 |
424 vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window, | 425 vdp_st = vdp_presentation_queue_target_create_x11(vdp_device, vo_window, |
425 &vdp_flip_target); | 426 &vdp_flip_target); |
426 CHECK_ST_ERROR("Error when calling vdp_presentation_queue_target_create_x11") | 427 CHECK_ST_ERROR("Error when calling vdp_presentation_queue_target_create_x11") |
427 | 428 |