diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/XPM.cxx | 2 | ||||
-rw-r--r-- | src/XPM.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 2a0399837..d1389efa0 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -38,7 +38,7 @@ static size_t MeasureLength(const char *s) { return i; } -ColourAllocated XPM::ColourFromCode(int ch) { +ColourAllocated XPM::ColourFromCode(int ch) const { return colourCodeTable[ch]->allocated; #ifdef SLOW for (int i=0; i<nColours; i++) { @@ -24,7 +24,7 @@ class XPM { char codeTransparent; char *codes; ColourPair *colours; - ColourAllocated ColourFromCode(int ch); + ColourAllocated ColourFromCode(int ch) const; void FillRun(Surface *surface, int code, int startX, int y, int x); char **lines; ColourPair *colourCodeTable[256]; |