From 67631163ffe6960aa1673fc72c45005eaa001ed2 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Wed, 20 Aug 2008 21:51:53 +0300 Subject: [PATCH] wined3d: Fix copy paste error in IWineGDISurfaceImpl_RealizePalette. It has to update the whole surface, so NULL must be passed to x11_copy_to_screen. Fixes a regression in Red Alert. --- dlls/wined3d/surface_gdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 7874f92c9b..05a4a54671 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -483,7 +483,7 @@ HRESULT WINAPI IWineGDISurfaceImpl_RealizePalette(IWineD3DSurface *iface) { /* Tell the swapchain to update the screen */ IWineD3DSurface_GetContainer(iface, &IID_IWineD3DSwapChain, (void **) &swapchain); if(swapchain) { - x11_copy_to_screen(swapchain, &This->lockedRect); + x11_copy_to_screen(swapchain, NULL); IWineD3DSwapChain_Release((IWineD3DSwapChain *) swapchain); } -- 2.32.0.93.g670b81a890