aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-10-04 22:26:57 +0000
committerWillem Jan Palenstijn2009-10-04 22:26:57 +0000
commit632359c0b4d5b833233e27685516e92a5b91ed2c (patch)
tree2d2d5c985c8e14a83a8282e428e8ddda8924719c /engines/sci
parent92d0a9e17f293159af57918fa7dffae7dbd1528b (diff)
downloadscummvm-rg350-632359c0b4d5b833233e27685516e92a5b91ed2c.tar.gz
scummvm-rg350-632359c0b4d5b833233e27685516e92a5b91ed2c.tar.bz2
scummvm-rg350-632359c0b4d5b833233e27685516e92a5b91ed2c.zip
SCI: Fix cast, constness
svn-id: r44640
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/gui/gui_view.cpp2
-rw-r--r--engines/sci/gui/gui_view.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_view.cpp b/engines/sci/gui/gui_view.cpp
index 09ec82ac5d..7b5df78be3 100644
--- a/engines/sci/gui/gui_view.cpp
+++ b/engines/sci/gui/gui_view.cpp
@@ -63,7 +63,7 @@ void SciGUIview::initData(GUIResourceId resourceId) {
bool IsEGA = false;
_embeddedPal = false;
- _EGAMapping = (byte *)&EGAMappingDefault;
+ _EGAMapping = EGAMappingDefault;
_loopCount = 0;
switch (_s->resMan->getViewType()) {
diff --git a/engines/sci/gui/gui_view.h b/engines/sci/gui/gui_view.h
index 9e151561f3..a34153c39b 100644
--- a/engines/sci/gui/gui_view.h
+++ b/engines/sci/gui/gui_view.h
@@ -77,7 +77,7 @@ private:
sciViewLoopInfo *_loop;
bool _embeddedPal;
GUIPalette _palette;
- byte *_EGAMapping; // simple translation map for all 16 colors
+ const byte *_EGAMapping; // simple translation map for all 16 colors
};
} // End of namespace Sci