3 // Copyright (c) 2002 Iain Murray
5 #include "../Common/Common.h"
7 #include "CustomColours.h"
8 using namespace Dasher
;
11 // Track memory leaks on Windows to the line that new'd the memory
14 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
17 static char THIS_FILE
[] = __FILE__
;
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
]);