aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/hires1.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-03-06 16:43:30 +0100
committerWalter van Niftrik2016-03-09 10:03:13 +0100
commit0ec3ab142244cbaf24f0f6c97a931d0d073d4f97 (patch)
tree5e18782be888e2dd2a91b942009f3edaebb57d8a /engines/adl/hires1.cpp
parenta73dcdf224ae88c7bcf73d754781052835af4cd0 (diff)
downloadscummvm-rg350-0ec3ab142244cbaf24f0f6c97a931d0d073d4f97.tar.gz
scummvm-rg350-0ec3ab142244cbaf24f0f6c97a931d0d073d4f97.tar.bz2
scummvm-rg350-0ec3ab142244cbaf24f0f6c97a931d0d073d4f97.zip
ADL: Fix const'ness
Diffstat (limited to 'engines/adl/hires1.cpp')
-rw-r--r--engines/adl/hires1.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/adl/hires1.cpp b/engines/adl/hires1.cpp
index 11d576b217..c7b62c144f 100644
--- a/engines/adl/hires1.cpp
+++ b/engines/adl/hires1.cpp
@@ -205,7 +205,7 @@ void HiRes1Engine::runIntro() {
delay(2000);
}
-void HiRes1Engine::drawPic(Common::ReadStream &stream, const Common::Point &pos) {
+void HiRes1Engine::drawPic(Common::ReadStream &stream, const Common::Point &pos) const {
byte x, y;
bool bNewLine = false;
byte oldX = 0, oldY = 0;
@@ -242,7 +242,7 @@ void HiRes1Engine::drawPic(Common::ReadStream &stream, const Common::Point &pos)
}
}
-void HiRes1Engine::drawPic(byte pic, Common::Point pos) {
+void HiRes1Engine::drawPic(byte pic, Common::Point pos) const {
Common::File f;
Common::String name = Common::String::format("BLOCK%i", _pictures[pic].block);
@@ -406,7 +406,7 @@ void HiRes1Engine::printMessage(uint idx, bool wait) {
AdlEngine::printMessage(idx, wait);
}
-uint HiRes1Engine::getEngineMessage(EngineMessage msg) {
+uint HiRes1Engine::getEngineMessage(EngineMessage msg) const {
switch (msg) {
case IDI_MSG_CANT_GO_THERE:
return IDI_HR1_MSG_CANT_GO_THERE;
@@ -423,7 +423,7 @@ uint HiRes1Engine::getEngineMessage(EngineMessage msg) {
}
}
-void HiRes1Engine::drawLine(const Common::Point &p1, const Common::Point &p2, byte color) {
+void HiRes1Engine::drawLine(const Common::Point &p1, const Common::Point &p2, byte color) const {
// This draws a four-connected line
int16 deltaX = p2.x - p1.x;