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:
parent
e3c8794dfc
commit
e48d75862f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue