Call TSXFlush after setting DGA palette, so it updates immediately.

This commit is contained in:
Ove Kaaven 2000-06-10 04:24:41 +00:00 committed by Alexandre Julliard
parent fb270ddca4
commit 70b699a1a1
2 changed files with 2 additions and 0 deletions

View file

@ -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 =

View file

@ -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;
}