Skip to content

Commit 4d6f287

Browse files
committed
GRAPHICS: Fix BMP getPalette function definition.
The BMP decoder getPalette function definition is now identical to the other image format decoders subclassed from ImageDecoder. This also fixes a overloaded virtual warning reported by salty-horse.
1 parent b7a5573 commit 4d6f287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphics/decoders/bmp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BitmapDecoder : public ImageDecoder {
5151
void destroy();
5252
virtual bool loadStream(Common::SeekableReadStream &stream);
5353
virtual const Surface *getSurface() const { return _surface; }
54-
virtual const byte *getPalette() { return _palette; }
54+
const byte *getPalette() const { return _palette; }
5555

5656
private:
5757
Surface *_surface;

0 commit comments

Comments
 (0)