- nR = nR1 + ((nR2 - nR1) * nGradient / 100);
- nG = nG1 + ((nG2 - nG1) * nGradient / 100);
- nB = nB1 + ((nB2 - nB1) * nGradient / 100);
+ nR = (wxUint8)(nR1 + ((nR2 - nR1) * nGradient / 100));
+ nG = (wxUint8)(nG1 + ((nG2 - nG1) * nGradient / 100));
+ nB = (wxUint8)(nB1 + ((nB2 - nB1) * nGradient / 100));