vlc | branch: master | Steve Lhomme <[email protected]> | Tue Apr  7 16:23:41 
2020 +0200| [582f0af3c5fa8f63bd21e6c4f8a8e21ebc6b003b] | committer: Steve Lhomme

d3d9: don't read the screen size to create the swapchain in winstore

The API is not available and since we're in Windowed mode it will take the size
of the window.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=582f0af3c5fa8f63bd21e6c4f8a8e21ebc6b003b
---

 modules/video_chroma/d3d9_fmt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_chroma/d3d9_fmt.c b/modules/video_chroma/d3d9_fmt.c
index 88501521aa..d8c21fc41f 100644
--- a/modules/video_chroma/d3d9_fmt.c
+++ b/modules/video_chroma/d3d9_fmt.c
@@ -68,8 +68,10 @@ static void FillPresentationParameters(D3DPRESENT_PARAMETERS 
*d3dpp)
     d3dpp->hDeviceWindow          = NULL;
     d3dpp->SwapEffect             = D3DSWAPEFFECT_COPY;
     d3dpp->BackBufferCount        = 1;
+#if !VLC_WINSTORE_APP
     d3dpp->BackBufferWidth        = GetSystemMetrics(SM_CXVIRTUALSCREEN);
     d3dpp->BackBufferHeight       = GetSystemMetrics(SM_CYVIRTUALSCREEN);
+#endif // VLC_WINSTORE_APP
 }
 
 int D3D9_ResetDevice(vlc_object_t *o, d3d9_decoder_device_t *dec_dev)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to