aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/exec_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2010-04-27 08:59:13 +0000
committerNicola Mettifogo2010-04-27 08:59:13 +0000
commit498d8000ca6869e6fae2678b4ff61f21c0cea1b8 (patch)
treeb2639c2dffcf0e7e9e85d02779c1f1da89ca7d33 /engines/parallaction/exec_br.cpp
parent7c26675ec11018f4efa72607337dd6a9eae4dac1 (diff)
downloadscummvm-rg350-498d8000ca6869e6fae2678b4ff61f21c0cea1b8.tar.gz
scummvm-rg350-498d8000ca6869e6fae2678b4ff61f21c0cea1b8.tar.bz2
scummvm-rg350-498d8000ca6869e6fae2678b4ff61f21c0cea1b8.zip
Fix bug 2969257 (labels) and hopefully plug all the leaks.
svn-id: r48811
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r--engines/parallaction/exec_br.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp
index ec9f846459..d5d89616d2 100644
--- a/engines/parallaction/exec_br.cpp
+++ b/engines/parallaction/exec_br.cpp
@@ -96,7 +96,7 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) {
_subtitle[1] = _gfx->createLabel(_labelFont, s2, color);
_gfx->showLabel(_subtitle[1], CENTER_LABEL_HORIZONTAL, _subtitleY + 5 + _labelFont->height());
} else {
- _subtitle[1] = -1;
+ _subtitle[1] = 0;
}
#if 0 // disabled because no references to lip sync has been found in the scripts
_subtitleLipSync = 0;
@@ -104,11 +104,11 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) {
}
void Parallaction_br::clearSubtitles() {
- if (_subtitle[0] != -1) {
+ if (_subtitle[0]) {
_gfx->hideLabel(_subtitle[0]);
}
- if (_subtitle[1] != -1) {
+ if (_subtitle[1]) {
_gfx->hideLabel(_subtitle[1]);
}
}