Alexander Dorofeyev : wined3d: Only copy front buffer to screen in gdi RealizePalette.
Module: wine Branch: master Commit: 2027b0587d5d2c20985ce5e45e48caa4cd420d20 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2027b0587d5d2c20985ce5e45e... Author: Alexander Dorofeyev <alexd4(a)inbox.lv> Date: Wed May 14 22:25:10 2008 +0300 wined3d: Only copy front buffer to screen in gdi RealizePalette. --- 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 1302ac3..030b848 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -650,7 +650,7 @@ HRESULT WINAPI IWineGDISurfaceImpl_RealizePalette(IWineD3DSurface *iface) { /* Update the image because of the palette change. Some games like e.g Red Alert call SetEntries a lot to implement fading. */ - if(This->resource.usage & WINED3DUSAGE_RENDERTARGET) + if(This == (IWineD3DSurfaceImpl *) This->resource.wineD3DDevice->ddraw_primary) x11_copy_to_screen(This, NULL); return WINED3D_OK;
participants (1)
-
Alexandre Julliard