aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/dispman.h
diff options
context:
space:
mode:
authorStrangerke2015-12-20 17:21:55 +0100
committerWillem Jan Palenstijn2015-12-23 21:35:32 +0100
commitb53735ba064012b3c981d5ef497d5f8c2e974291 (patch)
tree256e3ae0afde08b4cd19bf1e62eeb3b93144c4ab /engines/lab/dispman.h
parent2edd0c51425db5e4407d38dbbeea788173f383b5 (diff)
downloadscummvm-rg350-b53735ba064012b3c981d5ef497d5f8c2e974291.tar.gz
scummvm-rg350-b53735ba064012b3c981d5ef497d5f8c2e974291.tar.bz2
scummvm-rg350-b53735ba064012b3c981d5ef497d5f8c2e974291.zip
LAB: Constify some parameters
Diffstat (limited to 'engines/lab/dispman.h')
-rw-r--r--engines/lab/dispman.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/lab/dispman.h b/engines/lab/dispman.h
index 1ca58874ca..a88923ee4c 100644
--- a/engines/lab/dispman.h
+++ b/engines/lab/dispman.h
@@ -85,7 +85,7 @@ public:
/**
* Reads in a picture into the display bitmap.
*/
- void readPict(Common::String filename, bool playOnce = true, bool onlyDiffData = false, byte *memoryBuffer = nullptr, uint16 maxHeight = 0);
+ void readPict(const Common::String filename, bool playOnce = true, bool onlyDiffData = false, byte *memoryBuffer = nullptr, uint16 maxHeight = 0);
void freePict();
/**
@@ -97,7 +97,7 @@ public:
/**
* Scrolls the display to a new picture from a black screen.
*/
- void doScrollWipe(Common::String filename);
+ void doScrollWipe(const Common::String filename);
/**
* Does the scroll bounce. Assumes bitmap already in memory.
@@ -107,12 +107,12 @@ public:
/**
* Does the transporter wipe.
*/
- void doTransWipe(CloseDataPtr *closePtrList, Common::String filename);
+ void doTransWipe(CloseDataPtr *closePtrList, const Common::String filename);
/**
* Does a certain number of pre-programmed wipes.
*/
- void doTransition(TransitionType transitionType, CloseDataPtr *closePtrList, Common::String filename);
+ void doTransition(TransitionType transitionType, CloseDataPtr *closePtrList, const Common::String filename);
/**
* Changes the front screen to black.
@@ -259,7 +259,7 @@ public:
/**
* Returns the length of a text in the specified font.
*/
- uint16 textLength(TextFont *font, Common::String text);
+ uint16 textLength(TextFont *font, const Common::String text);
/**
* Returns the height of a specified font.
@@ -269,7 +269,7 @@ public:
/**
* Draws the text to the screen.
*/
- void drawText(TextFont *tf, uint16 x, uint16 y, uint16 color, Common::String text);
+ void drawText(TextFont *tf, uint16 x, uint16 y, uint16 color, const Common::String text);
/**
* Gets a line of text for flowText; makes sure that its length is less than