[vlc-commits] direct3d9: Use a big enough back buffer
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jun 13 14:13:35 CEST 2017
vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 13 14:12:22 2017 +0200| [cae5b4a75bdfd362835d7ab112be269c6faa498f] | committer: Hugo Beauzée-Luyssen
direct3d9: Use a big enough back buffer
This fixes display of videos with resolution bigger than the screen
resolution when autoscale is off.
Fix #18413
(cherry picked from commit a8e0c5c8c2392668d2b12ea49fe7e431ac285c9d)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=cae5b4a75bdfd362835d7ab112be269c6faa498f
---
modules/video_output/msw/direct3d.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 98b90acf1c..219706e148 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -622,9 +622,9 @@ static int Direct3DFillPresentationParameters(vout_display_t *vd)
d3dpp->Windowed = TRUE;
d3dpp->hDeviceWindow = vd->sys->hvideownd;
d3dpp->BackBufferWidth = __MAX((unsigned int)GetSystemMetrics(SM_CXVIRTUALSCREEN),
- d3ddm.Width);
+ vd->source.i_width);
d3dpp->BackBufferHeight = __MAX((unsigned int)GetSystemMetrics(SM_CYVIRTUALSCREEN),
- d3ddm.Height);
+ vd->source.i_height);
d3dpp->SwapEffect = D3DSWAPEFFECT_COPY;
d3dpp->MultiSampleType = D3DMULTISAMPLE_NONE;
d3dpp->PresentationInterval = D3DPRESENT_INTERVAL_DEFAULT;
More information about the vlc-commits
mailing list