[Scummvm-cvs-logs] scummvm master -> 8a3ee2261da22945612f93b5d85bd0c571422085

sev- sev at scummvm.org
Thu Aug 25 08:19:48 CEST 2016


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:
8a3ee2261d DIRECTOR: Remove now redundant image width correction table


Commit: 8a3ee2261da22945612f93b5d85bd0c571422085
    https://github.com/scummvm/scummvm/commit/8a3ee2261da22945612f93b5d85bd0c571422085
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-08-25T08:19:05+02:00

Commit Message:
DIRECTOR: Remove now redundant image width correction table

Changed paths:
    engines/director/frame.cpp



diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp
index 451a406..987ceec 100644
--- a/engines/director/frame.cpp
+++ b/engines/director/frame.cpp
@@ -516,24 +516,6 @@ void Frame::renderButton(Graphics::ManagedSurface &surface, uint16 spriteId) {
 	}
 }
 
-static const int corrections[] = {
-	1026, 27, 27, // Macro
-	1027, 164, 170, // House
-	1028, 154, 154, // Macromind Director
-	1029, 158, 158, // Upper inscription
-	1030, 54, 54, // lift
-	1031, 116, 116, // Lower inscription
-	1032, 113, 113, // Lower inscription 2
-	1039, 50, 50,
-	1041, 110, 110, // descr
-	1042, 120, 121, // descr 2
-	1065, 27, 19, // car
-	1109, 104, 112, // taxi
-	1110, 90, 96, // taxi
-	1111, 74, 80, // taxi
-	0, 0, 0
-};
-
 Image::ImageDecoder *Frame::getImageFrom(uint16 spriteId) {
 	uint16 imgId = spriteId + 1024;
 	Image::ImageDecoder *img = NULL;
@@ -560,17 +542,6 @@ Image::ImageDecoder *Frame::getImageFrom(uint16 spriteId) {
 			debugC(2, kDebugImages, "id: %d, w: %d, h: %d, flags: %x, some: %x, unk1: %d, unk2: %d",
 				imgId, w, h, bc->flags, bc->someFlaggyThing, bc->unk1, bc->unk2);
 
-			bool c = false;
-			for (int i = 0; corrections[i]; i += 3)
-				if (corrections[i] == imgId) {
-					//w = corrections[i + 2];
-					c = true;
-					break;
-				}
-
-			if (!c)
-				debugC(4, kDebugImages, "%d, %d, %d", imgId, w, h);
-
 			int w1 = w;
 			if (w % 16)
 				w1 += 16 - w % 16;






More information about the Scummvm-git-logs mailing list