Call TSXFlush after setting DGA palette, so it updates immediately.
This commit is contained in:
parent
fb270ddca4
commit
70b699a1a1
|
@ -56,6 +56,7 @@ HRESULT WINAPI DGA_IDirectDrawPaletteImpl_SetEntries(
|
|||
This->palents[start+i].peFlags = palent[i].peFlags;
|
||||
}
|
||||
ddpriv->InstallColormap(display,DefaultScreen(display),dppriv->cm);
|
||||
TSXFlush(display);
|
||||
return DD_OK;
|
||||
}
|
||||
ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt =
|
||||
|
|
|
@ -109,6 +109,7 @@ HRESULT WINAPI DGA_IDirectDrawSurface4Impl_SetPalette(
|
|||
dib->colorMap = This->s.palette ? This->s.palette->screen_palents : NULL;
|
||||
GDI_HEAP_UNLOCK(This->s.DIBsection);
|
||||
}
|
||||
TSXFlush(display);
|
||||
}
|
||||
return DD_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue