aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2006-01-10 21:13:43 +0000
committerGregory Montoir2006-01-10 21:13:43 +0000
commit10936be5f6f0ac23d767cff67af35641053ca804 (patch)
tree5ec00bc70fc51ef7608bbde6d117b70b492d16d8
parent6966e4498da9f5bdba5543395fd40149fe8a7a94 (diff)
downloadscummvm-rg350-10936be5f6f0ac23d767cff67af35641053ca804.tar.gz
scummvm-rg350-10936be5f6f0ac23d767cff67af35641053ca804.tar.bz2
scummvm-rg350-10936be5f6f0ac23d767cff67af35641053ca804.zip
Minor cleanup.
svn-id: r19976
-rw-r--r--scumm/scumm.cpp8
-rw-r--r--scumm/string.cpp6
2 files changed, 1 insertions, 13 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 0a6ebd28f5..e04399fb36 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -1404,15 +1404,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
break;
case Common::kRenderCGA:
- if (!(_features & GF_16COLOR))
- _renderMode = Common::kRenderDefault;
- break;
-
case Common::kRenderEGA:
- if (!(_features & GF_16COLOR))
- _renderMode = Common::kRenderDefault;
- break;
-
case Common::kRenderAmiga:
if (!(_features & GF_16COLOR))
_renderMode = Common::kRenderDefault;
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 6dd02b4c23..85703a3d6b 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -934,8 +934,6 @@ void ScummEngine_v80he::initCharset(int charsetno) {
#endif
void ScummEngine::initCharset(int charsetno) {
- int i;
-
if (_gameId == GID_FT) {
if (!res.isResourceLoaded(rtCharset, charsetno))
loadCharset(charsetno);
@@ -947,9 +945,7 @@ void ScummEngine::initCharset(int charsetno) {
_string[0]._default.charset = charsetno;
_string[1]._default.charset = charsetno;
- for (i = 0; i < 16; i++)
- _charsetColorMap[i] = _charsetData[charsetno][i];
-
+ memcpy(_charsetColorMap, _charsetData[charsetno], sizeof(_charsetColorMap));
}