mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Initialize an identity mapping in CreatePalette if no depth conversion
is necessary. Also fixed a warning.
This commit is contained in:
parent
d3e7e214e2
commit
9d0abdbcca
@ -192,6 +192,12 @@ HRESULT WINAPI common_IDirectDraw2Impl_CreatePalette(
|
||||
ERR("unhandled palette format\n");
|
||||
|
||||
*psize = size;
|
||||
if (This->d.palette_convert == NULL) {
|
||||
/* No depth conversion - create 8<->8 identity map */
|
||||
int ent;
|
||||
for (ent=0; ent<256; ent++)
|
||||
(*lpddpal)->screen_palents[ent] = ent;
|
||||
}
|
||||
if (palent) {
|
||||
/* Now, if we are in depth conversion mode, create the screen palette */
|
||||
if (This->d.palette_convert != NULL)
|
||||
|
@ -330,7 +330,7 @@ HRESULT WINAPI DirectDrawCreateEx(
|
||||
) {
|
||||
FIXME(":semi stub\n");
|
||||
/* I don't know about what functionality is unique to Ex */
|
||||
return DirectDrawCreate(lpGUID,(LPDIRECTDRAW)lplpDD,pUnkOuter);
|
||||
return DirectDrawCreate(lpGUID,(LPDIRECTDRAW*)lplpDD,pUnkOuter);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user