Henri Verbeet : wined3d: Update the swapchain' s present parameters when changing the backbuffer.

Alexandre Julliard julliard at winehq.org
Tue Feb 2 10:45:30 CST 2010


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Feb  2 12:06:55 2010 +0100

wined3d: Update the swapchain's present parameters when changing the backbuffer.

This fixes a bug exposed by commit b5907e23cc595de1f0aba2a615c8c4510b433d36.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 955b221..02c468f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5621,6 +5621,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
         if(Swapchain->backBuffer[0]) {
             IWineD3DSurface_SetContainer(Swapchain->backBuffer[0], (IWineD3DBase *) Swapchain);
             ((IWineD3DSurfaceImpl *)Swapchain->backBuffer[0])->Flags |= SFLAG_SWAPCHAIN;
+            Swapchain->presentParms.BackBufferWidth = BackImpl->currentDesc.Width;
+            Swapchain->presentParms.BackBufferHeight = BackImpl->currentDesc.Height;
+            Swapchain->presentParms.BackBufferFormat = BackImpl->resource.format_desc->format;
         } else {
             HeapFree(GetProcessHeap(), 0, Swapchain->backBuffer);
             Swapchain->backBuffer = NULL;




More information about the wine-cvs mailing list