aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/smush')
-rw-r--r--engines/scumm/smush/smush_font.cpp4
-rw-r--r--engines/scumm/smush/smush_player.cpp20
2 files changed, 12 insertions, 12 deletions
diff --git a/engines/scumm/smush/smush_font.cpp b/engines/scumm/smush/smush_font.cpp
index 96d9e2f7c5..59caaeea61 100644
--- a/engines/scumm/smush/smush_font.cpp
+++ b/engines/scumm/smush/smush_font.cpp
@@ -125,7 +125,7 @@ int SmushFont::draw2byte(byte *buffer, int dst_width, int x, int y, int idx) {
int h = _vm->_2byteHeight;
byte *src = _vm->get2byteCharPtr(idx);
- byte *dst = buffer + dst_width * (y + (_vm->_gameId == GID_CMI ? 7 : (_vm->_gameId == GID_DIG ? 2 : 0))) + x;
+ byte *dst = buffer + dst_width * (y + (_vm->_game.id == GID_CMI ? 7 : (_vm->_game.id == GID_DIG ? 2 : 0))) + x;
byte bits = 0;
char color = (_color != -1) ? _color : 1;
@@ -133,7 +133,7 @@ int SmushFont::draw2byte(byte *buffer, int dst_width, int x, int y, int idx) {
if (_new_colors)
color = (char)0xff;
- if (_vm->_gameId == GID_FT)
+ if (_vm->_game.id == GID_FT)
color = 1;
for (int j = 0; j < h; j++) {
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index 926e7f9f87..89fe8998d7 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -434,7 +434,7 @@ void SmushPlayer::handleIACT(Chunk &b) {
int32 size = b.getDword();
int32 bsize = b.getSize() - 18;
- if (_vm->_gameId != GID_CMI) {
+ if (_vm->_game.id != GID_CMI) {
int32 track = track_id;
if (track_flags == 1) {
track = track_id + 100;
@@ -568,7 +568,7 @@ void SmushPlayer::handleTextResource(Chunk &b) {
}
byte transBuf[512];
- if (_vm->_gameId == GID_CMI) {
+ if (_vm->_game.id == GID_CMI) {
_vm->translateText((const byte *)str - 1, transBuf);
while (*str++ != '/')
;
@@ -646,7 +646,7 @@ void SmushPlayer::handleTextResource(Chunk &b) {
assert(sf != NULL);
sf->setColor(color);
- if (_vm->_gameId == GID_CMI && string2[0] != 0) {
+ if (_vm->_game.id == GID_CMI && string2[0] != 0) {
str = string2;
}
@@ -1034,13 +1034,13 @@ void SmushPlayer::setupAnim(const char *file) {
char file_font[11];
if (_insanity) {
- if (!((_vm->_features & GF_DEMO) && (_vm->_platform == Common::kPlatformPC)))
+ if (!((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC)))
readString("mineroad.trs");
} else
readString(file);
- if (_vm->_gameId == GID_FT) {
- if (!((_vm->_features & GF_DEMO) && (_vm->_platform == Common::kPlatformPC))) {
+ if (_vm->_game.id == GID_FT) {
+ if (!((_vm->_game.features & GF_DEMO) && (_vm->_game.platform == Common::kPlatformPC))) {
_sf[0] = new SmushFont(_vm, true, false);
_sf[1] = new SmushFont(_vm, true, false);
_sf[2] = new SmushFont(_vm, true, false);
@@ -1050,17 +1050,17 @@ void SmushPlayer::setupAnim(const char *file) {
_sf[2]->loadFont("titlfnt.nut");
_sf[3]->loadFont("specfnt.nut");
}
- } else if (_vm->_gameId == GID_DIG) {
- if (!(_vm->_features & GF_DEMO)) {
+ } else if (_vm->_game.id == GID_DIG) {
+ if (!(_vm->_game.features & GF_DEMO)) {
for (i = 0; i < 4; i++) {
sprintf(file_font, "font%d.nut", i);
_sf[i] = new SmushFont(_vm, i != 0, false);
_sf[i]->loadFont(file_font);
}
}
- } else if (_vm->_gameId == GID_CMI) {
+ } else if (_vm->_game.id == GID_CMI) {
for (i = 0; i < 5; i++) {
- if ((_vm->_features & GF_DEMO) && (i == 4))
+ if ((_vm->_game.features & GF_DEMO) && (i == 4))
break;
sprintf(file_font, "font%d.nut", i);
_sf[i] = new SmushFont(_vm, false, true);