From 2f16dabe5786d3873dc80377a8d2c79d7439dab7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 1 Sep 2016 18:47:04 +0200 Subject: DIRECTOR: Lingo: Implemented 'the colorQD' and 'the colorDepth' entities --- engines/director/lingo/lingo-the.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/director/lingo') diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp index 2bf6cfb724..bef2e50acf 100644 --- a/engines/director/lingo/lingo-the.cpp +++ b/engines/director/lingo/lingo-the.cpp @@ -225,6 +225,10 @@ void Lingo::setTheEntity(int entity, Datum &id, int field, Datum &d) { _floatPrecisionFormat = Common::String::format("%%.%df", _floatPrecision); warning("set to %d: %s", _floatPrecision, _floatPrecisionFormat.c_str()); break; + case kTheColorDepth: + _vm->_colorDepth = d.toInt(); + warning("STUB: Set color depth to %d", _vm->_colorDepth); + break; default: warning("Unprocessed setting field %d of entity %d", field, entity); } @@ -361,6 +365,12 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) { d.type = FLOAT; d.u.f = sqrt(id.u.f); break; + case kTheColorQD: + push(Datum(1)); + break; + case kTheColorDepth: + push(Datum(_vm->_colorDepth)); + break; default: warning("Unprocessed getting field %d of entity %d", field, entity); d.type = VOID; -- cgit v1.2.3