aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-05-20 22:49:09 +0000
committerEugene Sandulenko2005-05-20 22:49:09 +0000
commitd00c990808fa3fcec1df926771a70ed9bdf8dfca (patch)
treee167c934ab77834fce067e7d15813105c79a8267 /scumm/charset.cpp
parent201be9543a16af5fb3f4a6e87d0d1736a727e747 (diff)
downloadscummvm-rg350-d00c990808fa3fcec1df926771a70ed9bdf8dfca.tar.gz
scummvm-rg350-d00c990808fa3fcec1df926771a70ed9bdf8dfca.tar.bz2
scummvm-rg350-d00c990808fa3fcec1df926771a70ed9bdf8dfca.zip
Fix charsets in MM NES after gameload.
svn-id: r18196
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index bb96cadc7c..91b11c1746 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -1677,18 +1677,14 @@ void CharsetRendererNut::printChar(int chr) {
_str.bottom = shadow.bottom;
}
-CharsetRendererNES::CharsetRendererNES(ScummEngine *vm, Common::Language language)
- : CharsetRendererCommon(vm) {
- _trTable = NULL; // can't init it here, since resources aren't yet loaded!
-}
-
void CharsetRendererNES::printChar(int chr) {
int width, height, origWidth, origHeight;
VirtScreen *vs;
byte *charPtr, *dst;
- if (!_trTable) // have to init it here instead
- _trTable = _vm->getResourceAddress(rtCostume, 77) + 2;
+ // Init it here each time since it is cheap and fixes bug with
+ // charset after game load
+ _trTable = _vm->getResourceAddress(rtCostume, 77) + 2;
// HACK: how to set it properly?
if (_top == 0)