MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / AdvanceColorHistory

Method AdvanceColorHistory

ColorCop/ColorCopDlg.cpp:1968–1982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1966}
1967
1968void 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
1984void CColorCopDlg::FloatPrecisionUp() {
1985 if (m_Appflags & RGBFLOAT) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected