tagging release
[dasher.git] / trunk / Src / DasherCore / CustomColours.cpp
blob096f5e2dd4504eebb796a0c29dea22974696c86e
1 // CustomColours.cpp
2 //
3 // Copyright (c) 2002 Iain Murray
5 #include "../Common/Common.h"
7 #include "CustomColours.h"
8 using namespace Dasher;
9 using namespace std;
11 // Track memory leaks on Windows to the line that new'd the memory
12 #ifdef _WIN32
13 #ifdef _DEBUG
14 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
15 #define new DEBUG_NEW
16 #undef THIS_FILE
17 static char THIS_FILE[] = __FILE__;
18 #endif
19 #endif
21 CCustomColours::CCustomColours(const CColourIO::ColourInfo &ColourInfo) {
22 m_ColourInfo = &ColourInfo;
24 // Add all the colours.
25 for(unsigned int i = 0; i < ColourInfo.Reds.size(); i++) { // loop colours
26 m_Red.push_back(ColourInfo.Reds[i]);
27 m_Green.push_back(ColourInfo.Greens[i]);
28 m_Blue.push_back(ColourInfo.Blues[i]);