x11: update screen after set palette
This commit is contained in:
parent
13dc203eaf
commit
90bcffa9e2
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user