wined3d: Override backbufferformat in window mode.

This commit is contained in:
Roderick Colenbrander 2007-08-24 23:44:00 +02:00 committed by Alexandre Julliard
parent 925e8964f1
commit 3084081519
1 changed files with 4 additions and 0 deletions

View File

@ -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 */