[Scummvm-git-logs] scummvm master -> a57e049ce96f92452ed0337a38d40a8139418f5d

sev- noreply at scummvm.org
Tue Jun 14 07:48:27 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a57e049ce9 DIRECTOR: LINGO: Implement kTheDepth property of BitmapCastMember


Commit: a57e049ce96f92452ed0337a38d40a8139418f5d
    https://github.com/scummvm/scummvm/commit/a57e049ce96f92452ed0337a38d40a8139418f5d
Author: Pragyansh Chaturvedi (r41k0u) (pragyanshchaturvedi18 at gmail.com)
Date: 2022-06-14T09:48:22+02:00

Commit Message:
DIRECTOR: LINGO: Implement kTheDepth property of BitmapCastMember

Changed paths:
    engines/director/lingo/lingo-object.cpp


diff --git a/engines/director/lingo/lingo-object.cpp b/engines/director/lingo/lingo-object.cpp
index 671afef6010..73d49fe068d 100644
--- a/engines/director/lingo/lingo-object.cpp
+++ b/engines/director/lingo/lingo-object.cpp
@@ -883,7 +883,8 @@ Datum BitmapCastMember::getField(int field) {
 
 	switch (field) {
 	case kTheDepth:
-		warning("STUB: BitmapCastMember::getField(): Unprocessed getting field \"%s\" of cast %d", g_lingo->field2str(field), _castId);
+		d.type = INT;
+		d.u.i = _bitsPerPixel;
 		break;
 	case kTheRegPoint:
 		warning("STUB: BitmapCastMember::getField(): Unprocessed getting field \"%s\" of cast %d", g_lingo->field2str(field), _castId);
@@ -904,7 +905,7 @@ Datum BitmapCastMember::getField(int field) {
 bool BitmapCastMember::setField(int field, const Datum &d) {
 	switch (field) {
 	case kTheDepth:
-		warning("STUB: BitmapCastMember::setField(): Unprocessed setting field \"%s\" of cast %d", g_lingo->field2str(field), _castId);
+		warning("BitmapCastMember::setField(): Attempt to set read-only field %s of cast %d", g_lingo->field2str(field), _castId);
 		return false;
 	case kTheRegPoint:
 		warning("STUB: BitmapCastMember::setField(): Unprocessed setting field \"%s\" of cast %d", g_lingo->field2str(field), _castId);




More information about the Scummvm-git-logs mailing list