diff options
author | Nipun Garg | 2019-06-28 18:03:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:03 +0200 |
commit | a406218c2e92cdc192ac627e00e8428e3cba4be9 (patch) | |
tree | 636446b4dc2968a644d796a3c2f37f96392adff9 | |
parent | ba002d8616fbb3dbfe02dab63a03c5ac8de1ffc8 (diff) | |
download | scummvm-rg350-a406218c2e92cdc192ac627e00e8428e3cba4be9.tar.gz scummvm-rg350-a406218c2e92cdc192ac627e00e8428e3cba4be9.tar.bz2 scummvm-rg350-a406218c2e92cdc192ac627e00e8428e3cba4be9.zip |
HDB: Process cineTextOut() and cineCenterTextOut()
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index e92c85ba5f..5f651a3527 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -275,6 +275,24 @@ void AI::processCines() { complete = true; } break; + case C_TEXTOUT: + if (!_cine[i]->start) { + g_hdb->_window->textOut(_cine[i]->title, _cine[i]->x, _cine[i]->y, _cine[i]->end); + _cine[i]->start = 1; + } else { + if (!g_hdb->_window->textOutActive()) + complete = true; + } + break; + case C_CENTERTEXTOUT: + if (!_cine[i]->start) { + g_hdb->_window->centerTextOut(_cine[i]->title, _cine[i]->y, _cine[i]->end); + _cine[i]->start = 1; + } else { + if (!g_hdb->_window->textOutActive()) + complete = true; + } + break; case C_MOVEMASKEDPIC: if (!_cine[i]->start) { Picture *pic = cineFindInBlitList(_cine[i]->id); |