aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/video/avi_decoder.h2
-rw-r--r--graphics/video/coktel_decoder.cpp2
-rw-r--r--graphics/video/coktel_decoder.h2
-rw-r--r--graphics/video/dxa_decoder.h2
-rw-r--r--graphics/video/flic_decoder.h2
-rw-r--r--graphics/video/qt_decoder.h2
-rw-r--r--graphics/video/smk_decoder.h2
-rw-r--r--graphics/video/video_decoder.cpp2
-rw-r--r--graphics/video/video_decoder.h2
9 files changed, 9 insertions, 9 deletions
diff --git a/graphics/video/avi_decoder.h b/graphics/video/avi_decoder.h
index 306b32a076..6eebb241f2 100644
--- a/graphics/video/avi_decoder.h
+++ b/graphics/video/avi_decoder.h
@@ -178,7 +178,7 @@ public:
uint32 getElapsedTime() const;
const Surface *decodeNextFrame();
PixelFormat getPixelFormat() const;
- byte *getPalette() { _dirtyPalette = false; return _palette; }
+ const byte *getPalette() { _dirtyPalette = false; return _palette; }
bool hasDirtyPalette() const { return _dirtyPalette; }
protected:
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index bcde7ff51e..e26ec33048 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -257,7 +257,7 @@ uint32 CoktelDecoder::getFrameCount() const {
return _frameCount;
}
-byte *CoktelDecoder::getPalette() {
+const byte *CoktelDecoder::getPalette() {
return _palette;
}
diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h
index 7b54c80304..4660443a30 100644
--- a/graphics/video/coktel_decoder.h
+++ b/graphics/video/coktel_decoder.h
@@ -123,7 +123,7 @@ public:
uint32 getFrameCount() const;
- byte *getPalette();
+ const byte *getPalette();
bool hasDirtyPalette() const;
diff --git a/graphics/video/dxa_decoder.h b/graphics/video/dxa_decoder.h
index e4688e36cd..a9a656e46d 100644
--- a/graphics/video/dxa_decoder.h
+++ b/graphics/video/dxa_decoder.h
@@ -52,7 +52,7 @@ public:
uint32 getFrameCount() const { return _frameCount; }
const Surface *decodeNextFrame();
PixelFormat getPixelFormat() const { return PixelFormat::createFormatCLUT8(); }
- byte *getPalette() { _dirtyPalette = false; return _palette; }
+ const byte *getPalette() { _dirtyPalette = false; return _palette; }
bool hasDirtyPalette() const { return _dirtyPalette; }
/**
diff --git a/graphics/video/flic_decoder.h b/graphics/video/flic_decoder.h
index b716a87b62..21d5f22ccb 100644
--- a/graphics/video/flic_decoder.h
+++ b/graphics/video/flic_decoder.h
@@ -71,7 +71,7 @@ public:
void clearDirtyRects() { _dirtyRects.clear(); }
void copyDirtyRectsToBuffer(uint8 *dst, uint pitch);
- byte *getPalette() { _paletteChanged = false; return _palette; }
+ const byte *getPalette() { _paletteChanged = false; return _palette; }
bool hasDirtyPalette() const { return _paletteChanged; }
void reset();
diff --git a/graphics/video/qt_decoder.h b/graphics/video/qt_decoder.h
index e409ebb55d..8c1ab0b27b 100644
--- a/graphics/video/qt_decoder.h
+++ b/graphics/video/qt_decoder.h
@@ -96,7 +96,7 @@ public:
* Returns the palette of the video
* @return the palette of the video
*/
- byte *getPalette() { _dirtyPalette = false; return _palette; }
+ const byte *getPalette() { _dirtyPalette = false; return _palette; }
bool hasDirtyPalette() const { return _dirtyPalette; }
/**
diff --git a/graphics/video/smk_decoder.h b/graphics/video/smk_decoder.h
index da64927b49..1f9c5a1d3e 100644
--- a/graphics/video/smk_decoder.h
+++ b/graphics/video/smk_decoder.h
@@ -67,7 +67,7 @@ public:
uint32 getElapsedTime() const;
const Surface *decodeNextFrame();
PixelFormat getPixelFormat() const { return PixelFormat::createFormatCLUT8(); }
- byte *getPalette() { _dirtyPalette = false; return _palette; }
+ const byte *getPalette() { _dirtyPalette = false; return _palette; }
bool hasDirtyPalette() const { return _dirtyPalette; }
virtual void handleAudioTrack(byte track, uint32 chunkSize, uint32 unpackedSize);
diff --git a/graphics/video/video_decoder.cpp b/graphics/video/video_decoder.cpp
index 081f47bf78..da3aae2821 100644
--- a/graphics/video/video_decoder.cpp
+++ b/graphics/video/video_decoder.cpp
@@ -50,7 +50,7 @@ uint32 VideoDecoder::getElapsedTime() const {
}
void VideoDecoder::setSystemPalette() {
- byte *vidPalette = getPalette();
+ const byte *vidPalette = getPalette();
byte *sysPalette = new byte[256 * 4];
for (uint16 i = 0; i < 256; i++) {
diff --git a/graphics/video/video_decoder.h b/graphics/video/video_decoder.h
index a84253ac2b..437d7a41d6 100644
--- a/graphics/video/video_decoder.h
+++ b/graphics/video/video_decoder.h
@@ -119,7 +119,7 @@ public:
/**
* Get the palette for the video in RGB format (if 8bpp or less)
*/
- virtual byte *getPalette() { return 0; }
+ virtual const byte *getPalette() { return 0; }
/**
* Returns if the palette is dirty or not