From 6a7cac4480d15c5737fd5c25a4b0fa3c937d935b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 25 Sep 2011 09:50:39 +1000 Subject: Palette support removed. --- src/XPM.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/XPM.h') diff --git a/src/XPM.h b/src/XPM.h index b9c7308af..77ab0806e 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -23,12 +23,12 @@ class XPM { char *data; char codeTransparent; char *codes; - ColourPair *colours; + ColourDesired *colours; ColourDesired ColourDesiredFromCode(int ch) const; - ColourAllocated ColourFromCode(int ch) const; + ColourDesired ColourFromCode(int ch) const; void FillRun(Surface *surface, int code, int startX, int y, int x); char **lines; - ColourPair *colourCodeTable[256]; + ColourDesired *colourCodeTable[256]; public: XPM(const char *textForm); XPM(const char *const *linesForm); @@ -36,10 +36,6 @@ public: void Init(const char *textForm); void Init(const char *const *linesForm); void Clear(); - /// Similar to same named method in ViewStyle: - void RefreshColourPalette(Palette &pal, bool want); - /// No palette used, so just copy the desired colours to the allocated colours - void CopyDesiredColours(); /// Decompose image into runs and use FillRectangle for each run void Draw(Surface *surface, PRectangle &rc); char **InLinesForm() { return lines; } -- cgit v1.2.3