assign default palette to primary surface
This commit is contained in:
parent
ac19dec2c4
commit
806924f86e
3 changed files with 277 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue