aboutsummaryrefslogtreecommitdiff
path: root/engines/bbvs
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bbvs')
-rw-r--r--engines/bbvs/bbvs.cpp4
-rw-r--r--engines/bbvs/bbvs.h3
-rw-r--r--engines/bbvs/graphics.cpp4
3 files changed, 9 insertions, 2 deletions
diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp
index 816b713b1f..d40d5e482f 100644
--- a/engines/bbvs/bbvs.cpp
+++ b/engines/bbvs/bbvs.cpp
@@ -118,15 +118,19 @@ BbvsEngine::BbvsEngine(OSystem *syst, const ADGameDescription *gd) :
Engine::syncSoundSettings();
+#ifdef USE_TRANSLATION
_oldGUILanguage = TransMan.getCurrentLanguage();
if (gd->flags & GF_GUILANGSWITCH)
TransMan.setLanguage(getLanguageLocale(gd->language));
+#endif
}
BbvsEngine::~BbvsEngine() {
+#ifdef USE_TRANSLATION
if (TransMan.getCurrentLanguage() != _oldGUILanguage)
TransMan.setLanguage(_oldGUILanguage);
+#endif
delete _random;
diff --git a/engines/bbvs/bbvs.h b/engines/bbvs/bbvs.h
index d098aaf90b..ff4afe9526 100644
--- a/engines/bbvs/bbvs.h
+++ b/engines/bbvs/bbvs.h
@@ -234,7 +234,10 @@ public:
private:
Graphics::PixelFormat _pixelFormat;
+
+#ifdef USE_TRANSLATION
Common::String _oldGUILanguage;
+#endif
public:
Common::RandomSource *_random;
diff --git a/engines/bbvs/graphics.cpp b/engines/bbvs/graphics.cpp
index 43840607c8..e60bf0b8eb 100644
--- a/engines/bbvs/graphics.cpp
+++ b/engines/bbvs/graphics.cpp
@@ -66,7 +66,7 @@ void Screen::clear() {
void Screen::drawDrawList(DrawList &drawList, SpriteModule *spriteModule) {
for (uint i = 0; i < drawList.size(); ++i) {
- debug(1, "index: %d; x: %d; y: %d; priority: %d", drawList[i].index, drawList[i].x, drawList[i].y, drawList[i].priority);
+ debug(4, "index: %d; x: %d; y: %d; priority: %d", drawList[i].index, drawList[i].x, drawList[i].y, drawList[i].priority);
Sprite sprite = spriteModule->getSprite(drawList[i].index);
drawSprite(sprite, drawList[i].x, drawList[i].y);
}
@@ -105,7 +105,7 @@ void Screen::drawSprite(Sprite &sprite, int x, int y) {
if (destX + width >= _surface->w)
width = _surface->w - destX;
- debug(0, "drawSprite() (%d, %d, %d, %d); skipX: %d; skipY: %d; %d", destX, destY, width, height, skipX, skipY, sprite.type);
+ debug(6, "drawSprite() (%d, %d, %d, %d); skipX: %d; skipY: %d; %d", destX, destY, width, height, skipX, skipY, sprite.type);
if (sprite.type == 1) {
for (int yc = 0; yc < height; ++yc) {