aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/exec_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-04 00:29:21 +0000
committerNicola Mettifogo2008-07-04 00:29:21 +0000
commitd387d1af0ec869700da199578f07e5a0c00968f3 (patch)
tree9234158f922cec9fae0db41e798c9859216afd81 /engines/parallaction/exec_br.cpp
parentd92085b5071b0bb62642d62857e5853006be3b2c (diff)
downloadscummvm-rg350-d387d1af0ec869700da199578f07e5a0c00968f3.tar.gz
scummvm-rg350-d387d1af0ec869700da199578f07e5a0c00968f3.tar.bz2
scummvm-rg350-d387d1af0ec869700da199578f07e5a0c00968f3.zip
- Moved dialogue balloon management code from Gfx to its own class
- Added a class to draw balloons in BRA (still without text and with wrong placement) svn-id: r32902
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r--engines/parallaction/exec_br.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp
index 348af2b731..734360167b 100644
--- a/engines/parallaction/exec_br.cpp
+++ b/engines/parallaction/exec_br.cpp
@@ -100,8 +100,13 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) {
}
void Parallaction_br::clearSubtitles() {
- _gfx->hideLabel(_subtitle[0]);
- _gfx->hideLabel(_subtitle[1]);
+ if (_subtitle[0] != -1) {
+ _gfx->hideLabel(_subtitle[0]);
+ }
+
+ if (_subtitle[1] != -1) {
+ _gfx->hideLabel(_subtitle[1]);
+ }
}