x11: update screen after set palette

This commit is contained in:
Thomas Bernard 2018-07-12 11:53:40 +02:00
parent 13dc203eaf
commit 90bcffa9e2

View File

@ -245,6 +245,8 @@ int SetPalette(const T_Components * colors, int firstcolor, int ncolors)
{
if (screen == NULL) return 0;
memcpy(screen->palette + firstcolor, colors, ncolors * sizeof(T_Components));
// update full screen
Update_rect(0, 0, screen->w, screen->h);
return 1;
}