S100 patch for custom palette from msl:
http://chdk.setepontos.com/index.php?topic=650.msg102757#msg102757