[[ Bugfix 11174 ]] Tweaked pixel packing in hw_color for legacy gradients.