void CopyPalColor(int dst, int src)
{
if (dst >= 256 || src >= 256)
throw new InvalidOperationException(string.Format("copyPalColor: invalid values, {0}, {1}", dst, src));
CurrentPalette.Colors[dst] = CurrentPalette.Colors[src];
SetDirtyColors(dst, dst);
}
}