From a406218c2e92cdc192ac627e00e8428e3cba4be9 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 28 Jun 2019 18:03:18 +0530 Subject: HDB: Process cineTextOut() and cineCenterTextOut() --- engines/hdb/ai-cinematic.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'engines/hdb') 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); -- cgit v1.2.3