[vlc-commits] direct3d9: update the output swapchain when the placement changed
Steve Lhomme
git at videolan.org
Tue May 7 16:50:13 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue May 7 15:50:57 2019 +0200| [e1cd01a6b1873227f71f7c64fffe8951452908ce] | committer: Steve Lhomme
direct3d9: update the output swapchain when the placement changed
The dimension of the window likely changed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1cd01a6b1873227f71f7c64fffe8951452908ce
---
modules/video_output/win32/direct3d9.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index d74b520f7a..9c93129d72 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1250,6 +1250,8 @@ static void Prepare(vout_display_t *vd, picture_t *picture,
return VLC_EGENERIC;
}
#endif
+ UpdateOutput(vd, &vd->fmt);
+
sys->clear_scene = true;
sys->area.place_changed = false;
}
More information about the vlc-commits
mailing list