Skip to content
Snippets Groups Projects
Commit 30840815 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard
Browse files

wined3d: Override backbufferformat in window mode.

parent 925e8964
No related branches found
No related tags found
No related merge requests found
......@@ -1336,6 +1336,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
pPresentationParameters->BackBufferHeight = Rect.bottom;
TRACE("Updating height to %d\n", pPresentationParameters->BackBufferHeight);
}
if (pPresentationParameters->BackBufferFormat == WINED3DFMT_UNKNOWN) {
pPresentationParameters->BackBufferFormat = object->orig_fmt;
TRACE("Updating format to %s\n", debug_d3dformat(object->orig_fmt));
}
}
/* Put the correct figures in the presentation parameters */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment