[Scummvm-git-logs] scummvm master -> 6a025a659beec1ad5007168e1fe81b26221a8c86

sev- sev at scummvm.org
Tue Apr 7 23:33:57 UTC 2020


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:
6a025a659b DIRECTOR: Disable color reversing for the time being


Commit: 6a025a659beec1ad5007168e1fe81b26221a8c86
    https://github.com/scummvm/scummvm/commit/6a025a659beec1ad5007168e1fe81b26221a8c86
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-08T01:33:07+02:00

Commit Message:
DIRECTOR: Disable color reversing for the time being

It leads to major gfx artifacts in Warlock. We need to check
with the original how it reverses the colors

Changed paths:
    engines/director/frame.cpp


diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index 4c5185522e..89b87e41f4 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -1117,6 +1117,8 @@ void Frame::drawReverseSprite(Graphics::ManagedSurface &target, const Graphics::
 		for (int j = 0; j < srcRect.width(); j++) {
 			if ((getSpriteIDFromPos(Common::Point(drawRect.left + j, drawRect.top + ii)) != 0)) {
 				if (*src != skipColor) {
+					*dst = _vm->transformColor(*src);
+#if 0
 					// TODO: Correctly implement reverse for fullColor... currently only works for black and white.
 					if (*src == *dst) {
 						*dst = 0xff - *src;
@@ -1124,6 +1126,7 @@ void Frame::drawReverseSprite(Graphics::ManagedSurface &target, const Graphics::
 					else {
 						*dst = *src;
 					}
+#endif
 				}
 			} else if (*src != skipColor) {
 				*dst = *src;




More information about the Scummvm-git-logs mailing list