Added patch to fix regression causing black screen on startup.

This commit is contained in:
Sebastian Lackner
2015-03-20 22:17:45 +01:00
parent dab39259ab
commit 483cf18923
5 changed files with 65 additions and 17 deletions

View File

@@ -0,0 +1,26 @@
From 8b42b214de22c117d61f2e59f2f3708046e9c9d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Fri, 20 Mar 2015 12:47:10 +0100
Subject: ddraw: Update the palette before presents to the NULL window.
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

View File

@@ -0,0 +1 @@
Fixes: [38248] Fix regression causing black screen on startup