From f51c81f34402c665751774b23f3734b7b7a0b2b4 Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Fri, 25 Sep 2009 08:13:39 +0000 Subject: Add const's to many interfaces of engines/draci/ svn-id: r44331 --- engines/draci/screen.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/draci/screen.cpp') diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp index dbdbf15701..5d3c612978 100644 --- a/engines/draci/screen.cpp +++ b/engines/draci/screen.cpp @@ -60,7 +60,7 @@ void Screen::setPaletteEmpty(unsigned int numEntries) { * start Index of the colour where replacement should start * num Number of colours to replace */ -void Screen::setPalette(byte *data, uint16 start, uint16 num) { +void Screen::setPalette(const byte *data, uint16 start, uint16 num) { Common::MemoryReadStream pal(data, 3 * kNumColours); pal.seek(start * 4); @@ -85,9 +85,9 @@ void Screen::setPalette(byte *data, uint16 start, uint16 num) { /** * @brief Copies the current memory screen buffer to the real screen */ -void Screen::copyToScreen() const { - Common::List *dirtyRects = _surface->getDirtyRects(); - Common::List::iterator it; +void Screen::copyToScreen() { + const Common::List *dirtyRects = _surface->getDirtyRects(); + Common::List::const_iterator it; // If a full update is needed, update the whole screen if (_surface->needsFullUpdate()) { @@ -119,7 +119,7 @@ void Screen::copyToScreen() const { * * Clears the screen and marks the whole screen dirty. */ -void Screen::clearScreen() const { +void Screen::clearScreen() { byte *ptr = (byte *)_surface->getBasePtr(0, 0); _surface->markDirty(); @@ -133,7 +133,7 @@ void Screen::clearScreen() const { * * Fills the screen with the specified colour and marks the whole screen dirty. */ -void Screen::fillScreen(uint8 colour) const { +void Screen::fillScreen(uint8 colour) { _surface->fill(colour); _surface->markDirty(); } -- cgit v1.2.3