From 5d3ae5680394efc764a0fb972d28dcc542095cb3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 25 Sep 2011 09:50:39 +1000 Subject: Palette support removed. --- src/XPM.cxx | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'src/XPM.cxx') diff --git a/src/XPM.cxx b/src/XPM.cxx index f0277c65f..cdaa69535 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -46,11 +46,11 @@ static size_t MeasureLength(const char *s) { } ColourDesired XPM::ColourDesiredFromCode(int ch) const { - return colourCodeTable[ch]->desired; + return *colourCodeTable[ch]; } -ColourAllocated XPM::ColourFromCode(int ch) const { - return colourCodeTable[ch]->allocated; +ColourDesired XPM::ColourFromCode(int ch) const { + return *colourCodeTable[ch]; #ifdef SLOW for (int i=0; i(codes[c])] = &(colours[c]); @@ -171,24 +171,6 @@ void XPM::Clear() { lines = 0; } -void XPM::RefreshColourPalette(Palette &pal, bool want) { - if (!data || !codes || !colours || !lines) { - return; - } - for (int i=0; iGetId() == ident) { set[i]->Init(textForm); - set[i]->CopyDesiredColours(); return; } } @@ -305,7 +286,6 @@ void XPMSet::Add(int ident, const char *textForm) { XPM *pxpm = new XPM(textForm); if (pxpm) { pxpm->SetId(ident); - pxpm->CopyDesiredColours(); if (len == maximum) { maximum += 64; XPM **setNew = new XPM *[maximum]; -- cgit v1.2.3