assign default palette to primary surface

This commit is contained in:
FunkyFr3sh 2024-12-15 00:05:51 +01:00
parent ac19dec2c4
commit 806924f86e
3 changed files with 277 additions and 3 deletions

View file

@ -84,7 +84,7 @@ HRESULT dd_CreatePalette(
p->lpVtbl = &g_ddp_vtbl;
p->flags = dwFlags;
ddp_SetEntries(p, dwFlags, 0, 256, lpDDColorArray);
ddp_SetEntries(p, dwFlags, 0, 256, lpDDColorArray);
IDirectDrawPalette_AddRef(p);
*lpDDPalette = p;