- m_gradientComponents[0] = c1.Red() / 255.0;
- m_gradientComponents[1] = c1.Green() / 255.0;
- m_gradientComponents[2] = c1.Blue() / 255.0;
- m_gradientComponents[3] = c1.Alpha() / 255.0;
- m_gradientComponents[4] = c2.Red() / 255.0;
- m_gradientComponents[5] = c2.Green() / 255.0;
- m_gradientComponents[6] = c2.Blue() / 255.0;
- m_gradientComponents[7] = c2.Alpha() / 255.0;
+ m_gradientComponents[0] = (CGFloat) (c1.Red() / 255.0);
+ m_gradientComponents[1] = (CGFloat) (c1.Green() / 255.0);
+ m_gradientComponents[2] = (CGFloat) (c1.Blue() / 255.0);
+ m_gradientComponents[3] = (CGFloat) (c1.Alpha() / 255.0);
+ m_gradientComponents[4] = (CGFloat) (c2.Red() / 255.0);
+ m_gradientComponents[5] = (CGFloat) (c2.Green() / 255.0);
+ m_gradientComponents[6] = (CGFloat) (c2.Blue() / 255.0);
+ m_gradientComponents[7] = (CGFloat) (c2.Alpha() / 255.0);