=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: ddraw: Update the palette before presents to the NULL window.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 23 10:03:19 CDT 2015


Module: wine
Branch: master
Commit: 02be2e38a8e3ff783132b675dabbfe41173841d3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=02be2e38a8e3ff783132b675dabbfe41173841d3

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Mar 20 12:47:10 2015 +0100

ddraw: Update the palette before presents to the NULL window.

---

 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)))
     {




More information about the wine-cvs mailing list