aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-01 18:47:04 +0200
committerEugene Sandulenko2016-09-01 18:47:04 +0200
commit2f16dabe5786d3873dc80377a8d2c79d7439dab7 (patch)
treece7a801ece4af6232b8550825fe88f4be4f8e829 /engines/director/lingo
parent91cc02b0eebf17eaaaa410eb7469559ebc42a13d (diff)
downloadscummvm-rg350-2f16dabe5786d3873dc80377a8d2c79d7439dab7.tar.gz
scummvm-rg350-2f16dabe5786d3873dc80377a8d2c79d7439dab7.tar.bz2
scummvm-rg350-2f16dabe5786d3873dc80377a8d2c79d7439dab7.zip
DIRECTOR: Lingo: Implemented 'the colorQD' and 'the colorDepth' entities
Diffstat (limited to 'engines/director/lingo')
-rw-r--r--engines/director/lingo/lingo-the.cpp10
1 files changed, 10 insertions, 0 deletions
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;