Roderick Colenbrander : wined3d: CreateAdditionalSwapChain bugfix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 29 07:48:10 CDT 2007


Module: wine
Branch: master
Commit: dc7252a1f839c52b1c40702a30982d3c0aa0a240
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dc7252a1f839c52b1c40702a30982d3c0aa0a240

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Tue Aug 28 22:37:37 2007 +0200

wined3d: CreateAdditionalSwapChain bugfix.

---

 dlls/wined3d/device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4544bf8..044e2af 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1361,7 +1361,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
 
     if (pPresentationParameters->Windowed &&
         ((pPresentationParameters->BackBufferWidth == 0) ||
-         (pPresentationParameters->BackBufferHeight == 0))) {
+         (pPresentationParameters->BackBufferHeight == 0) ||
+         (pPresentationParameters->BackBufferFormat == WINED3DFMT_UNKNOWN))) {
 
         RECT Rect;
         GetClientRect(object->win_handle, &Rect);




More information about the wine-cvs mailing list