ddraw: Set the swapchain palette in ddraw_create_swapchain().

This fixes a regression introduced by commit
9d49b7a9be.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-01-13 14:41:17 +03:30 committed by Alexandre Julliard
parent e3c8794dfc
commit e48d75862f
1 changed files with 3 additions and 0 deletions

View File

@ -653,6 +653,9 @@ static HRESULT ddraw_create_swapchain(struct ddraw *ddraw, HWND window, BOOL win
wined3d_swapchain_incref(ddraw->wined3d_swapchain);
ddraw_set_swapchain_window(ddraw, window);
if (ddraw->primary && ddraw->primary->palette)
wined3d_swapchain_set_palette(ddraw->wined3d_swapchain, ddraw->primary->palette->wined3d_palette);
return DD_OK;
}