Commit 7c081ad1 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed fullscreen size with multiple display

The fix from quality in [8d8844ad] introduced a weird artefact with dual screens, where the video didn't fill the complete screen. This fixes it.
parent 33f12f75
...@@ -522,6 +522,16 @@ static int Direct3DFillPresentationParameters(vout_thread_t *p_vout) ...@@ -522,6 +522,16 @@ static int Direct3DFillPresentationParameters(vout_thread_t *p_vout)
d3dpp->BackBufferCount = 1; d3dpp->BackBufferCount = 1;
d3dpp->EnableAutoDepthStencil = FALSE; d3dpp->EnableAutoDepthStencil = FALSE;
const unsigned i_adapter_count = IDirect3D9_GetAdapterCount(p_d3dobj);
for( unsigned i = 1; i < i_adapter_count; i++ )
{
hr = IDirect3D9_GetAdapterDisplayMode(p_d3dobj, i, &d3ddm );
if( FAILED(hr) )
continue;
d3dpp->BackBufferWidth = __MAX(d3dpp->BackBufferWidth, d3ddm.Width);
d3dpp->BackBufferHeight = __MAX(d3dpp->BackBufferHeight, d3ddm.Height);
}
RECT *display = &p_vout->p_sys->rect_display; RECT *display = &p_vout->p_sys->rect_display;
display->left = 0; display->left = 0;
display->top = 0; display->top = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment