Alexander Dorofeyev : wined3d: Fix copy paste error in IWineGDISurfaceImpl_RealizePalette.
Alexandre Julliard
julliard at winehq.org
Thu Aug 21 10:02:58 CDT 2008
Module: wine
Branch: master
Commit: 67631163ffe6960aa1673fc72c45005eaa001ed2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=67631163ffe6960aa1673fc72c45005eaa001ed2
Author: Alexander Dorofeyev <alexd4 at 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);
}
More information about the wine-cvs
mailing list