aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v8.cpp')
-rw-r--r--scumm/script_v8.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index 26c26e25a2..1bfc76e029 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -38,17 +38,17 @@
// FIXME: Move this somewhere better :)
void Scumm_v8::loadCharset(int charset) {
- char fontname[255];
+ char fontname[256];
sprintf(fontname, "resource/font%d.nut", charset);
warning("Loading charset %s\n", fontname);
- _fr[charset] = new NutRenderer;
- if (!(_fr[charset]->loadFont(fontname, (char*)getGameDataPath()))) {
+ _fr[charset] = new NutRenderer(this);
+ if (!(_fr[charset]->loadFont(fontname, getGameDataPath()))) {
delete _fr[charset];
_fr[charset] = NULL;
return;
}
- _fr[charset]->bindDisplay((byte*)virtscr[0].screenPtr, (int32)_realWidth, (int32)_realHeight, (int32)_realWidth);
+ _fr[charset]->bindDisplay(virtscr[0].screenPtr, _realWidth, _realHeight, _realWidth);
}
void Scumm_v8::setupOpcodes()