| 1966 | } |
| 1967 | |
| 1968 | void CColorCopDlg::AdvanceColorHistory() { |
| 1969 | // this function will advance the colors in the color history.. |
| 1970 | // the 7th color is lost, the first color is the current color |
| 1971 | // which is soon to be the older color. |
| 1972 | |
| 1973 | // if the new color is the same as the last color, don't switch. |
| 1974 | if (ColorHistory[0] == (COLORREF) RGB(m_Reddec, m_Greendec, m_Bluedec)) |
| 1975 | return; |
| 1976 | |
| 1977 | for (int sk = 6; sk > 0; sk--) { |
| 1978 | ColorHistory[sk] = ColorHistory[sk - 1]; |
| 1979 | } |
| 1980 | |
| 1981 | ColorHistory[0] = RGB(m_Reddec, m_Greendec, m_Bluedec); |
| 1982 | } |
| 1983 | |
| 1984 | void CColorCopDlg::FloatPrecisionUp() { |
| 1985 | if (m_Appflags & RGBFLOAT) { |
nothing calls this directly
no outgoing calls
no test coverage detected