[PATCH 1/4] ddraw: Update the palette before presents to the NULL window.
Stefan Dösinger
stefan at codeweavers.com
Fri Mar 20 06:47:10 CDT 2015
This fixes bug 38248.
---
dlls/ddraw/surface.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index b8c9872..0d2d731 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -81,6 +81,8 @@ HRESULT ddraw_surface_update_frontbuffer(struct ddraw_surface *surface, const RE
ERR("Failed to get surface DC, hr %#x.\n", hr);
return hr;
}
+ if (surface->palette)
+ wined3d_palette_apply_to_dc(surface->palette->wineD3DPalette, surface_dc);
if (!(screen_dc = GetDC(NULL)))
{
--
2.3.2
More information about the wine-patches
mailing list