wined3d: Update the device palette if the primary palette is changed.