aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/screen.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-09-25 08:13:39 +0000
committerRobert Špalek2009-09-25 08:13:39 +0000
commitf51c81f34402c665751774b23f3734b7b7a0b2b4 (patch)
tree19ad3493d410da3c41fcf88f3dff5b7e68765b82 /engines/draci/screen.cpp
parentd6502a0c2416fc388a4e4e2c93315202fecaac5e (diff)
downloadscummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.tar.gz
scummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.tar.bz2
scummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.zip
Add const's to many interfaces of engines/draci/
svn-id: r44331
Diffstat (limited to 'engines/draci/screen.cpp')
-rw-r--r--engines/draci/screen.cpp12
1 files changed, 6 insertions, 6 deletions
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<Common::Rect> *dirtyRects = _surface->getDirtyRects();
- Common::List<Common::Rect>::iterator it;
+void Screen::copyToScreen() {
+ const Common::List<Common::Rect> *dirtyRects = _surface->getDirtyRects();
+ Common::List<Common::Rect>::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();
}