diff options
author | nyamatongwe <devnull@localhost> | 2011-09-25 09:50:39 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-09-25 09:50:39 +1000 |
commit | 5d3ae5680394efc764a0fb972d28dcc542095cb3 (patch) | |
tree | d597d84cfe6eddd813d56505e7252a1b2521fdc6 /src/XPM.h | |
parent | 1237be33a5d1f857ddd488ec1ea7137d00152100 (diff) | |
download | scintilla-mirror-5d3ae5680394efc764a0fb972d28dcc542095cb3.tar.gz |
Palette support removed.
Diffstat (limited to 'src/XPM.h')
-rw-r--r-- | src/XPM.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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; } |