[vlc-commits] direct3d9: Use a big enough back buffer
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jun 13 14:06:55 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 13 14:05:25 2017 +0200| [a8e0c5c8c2392668d2b12ea49fe7e431ac285c9d] | 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8e0c5c8c2392668d2b12ea49fe7e431ac285c9d
---
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 dacc850c8f..22e4259a60 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -814,9 +814,9 @@ static int Direct3D9FillPresentationParameters(vout_display_t *vd)
d3dpp->Windowed = TRUE;
d3dpp->hDeviceWindow = vd->sys->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