Alexander Dorofeyev : wined3d: Fix copy paste error in IWineGDISurfaceImpl_RealizePalette.
Module: wine Branch: master Commit: 67631163ffe6960aa1673fc72c45005eaa001ed2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=67631163ffe6960aa1673fc72c... Author: Alexander Dorofeyev <alexd4(a)inbox.lv> Date: Wed Aug 20 21:51:53 2008 +0300 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 7874f92..05a4a54 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); }
participants (1)
-
Alexandre Julliard