[vlc-devel] [PATCH 2/2] direct3d9: Enable software decoding direct rendering
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Fri Apr 7 16:22:49 CEST 2017
On Fri, Apr 7, 2017, at 04:09 PM, Hugo Beauzée-Luyssen wrote:
> ---
> modules/video_output/win32/direct3d9.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/modules/video_output/win32/direct3d9.c
> b/modules/video_output/win32/direct3d9.c
> index 76c9a2f6b3..856b822de1 100644
> --- a/modules/video_output/win32/direct3d9.c
> +++ b/modules/video_output/win32/direct3d9.c
> @@ -273,10 +273,10 @@ static int Open(vlc_object_t *object)
>
> /* */
> vout_display_info_t info = vd->info;
> - info.is_slow = !is_d3d9_opaque(fmt.i_chroma);
> + info.is_slow = !(is_d3d9_opaque(fmt.i_chroma) || (vd->fmt.i_chroma
> == vd->source.i_chroma));
Another day, another braindead last minute refactoring.
Please read as:
info.is_slow = !is_d3d9_opaque(fmt.i_chroma) && (vd->fmt.i_chroma !=
vd->source.i_chroma);
Sorry about that
> info.has_double_click = true;
> info.has_hide_mouse = false;
> - info.has_pictures_invalid = !is_d3d9_opaque(fmt.i_chroma);
> + info.has_pictures_invalid = info.is_slow;
> if (var_InheritBool(vd, "direct3d9-hw-blending") &&
> sys->d3dregion_format != D3DFMT_UNKNOWN &&
> (sys->d3dcaps.SrcBlendCaps & D3DPBLENDCAPS_SRCALPHA) &&
> --
> 2.11.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
Hugo Beauzée-Luyssen
hugo at beauzee.fr
More information about the vlc-devel
mailing list