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

sev- sev at scummvm.org
Sat Apr 11 11:01:03 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:
a456938dab DIRECTOR: Fix code formatting


Commit: a456938dabad0f5273bf4ba81e323af9ceaefb94
    https://github.com/scummvm/scummvm/commit/a456938dabad0f5273bf4ba81e323af9ceaefb94
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-11T13:00:55+02:00

Commit Message:
DIRECTOR: Fix code formatting

Changed paths:
    engines/director/images.cpp


diff --git a/engines/director/images.cpp b/engines/director/images.cpp
index 129f393790..ae6fe7e562 100644
--- a/engines/director/images.cpp
+++ b/engines/director/images.cpp
@@ -168,12 +168,10 @@ void BITDDecoder::convertPixelIntoSurface(void* surfacePointer, uint fromBpp, ui
 			} else if (red == 0 && blue == 0 && green == 0) {
 				*((byte*)surfacePointer) = 0;
 			} else {
-				for (byte p = 0; p < _paletteColorCount; p++)
-				{
+				for (byte p = 0; p < _paletteColorCount; p++) {
 					if (_palette[p * 3 + 0] == red &&
 						_palette[p * 3 + 1] == green &&
-						_palette[p * 3 + 2] == blue)
-					{
+						_palette[p * 3 + 2] == blue) {
 						*((byte*)surfacePointer) = p;
 					}
 				}




More information about the Scummvm-git-logs mailing list