[Scummvm-cvs-logs] scummvm master -> 9bd5e8ff15dc22cf43281365e5835fc028a7caad

bluegr md5 at scummvm.org
Sat Feb 26 18:11:04 CET 2011


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:
9bd5e8ff15 SCI: Cleanup


Commit: 9bd5e8ff15dc22cf43281365e5835fc028a7caad
    https://github.com/scummvm/scummvm/commit/9bd5e8ff15dc22cf43281365e5835fc028a7caad
Author: md5 (md5 at scummvm.org)
Date: 2011-02-26T09:10:12-08:00

Commit Message:
SCI: Cleanup

Changed paths:
    engines/sci/console.cpp



diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index f63f0cb..f3c3657 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -1509,10 +1509,7 @@ bool Console::cmdDrawCel(int argc, const char **argv) {
 		_engine->_gfxPaint16->kernelDrawCel(resourceId, loopNo, celNo, 50, 50, 0, 0, 128, 128, false, NULL_REG);
 	} else {
 		GfxView *view = _engine->_gfxCache->getView(resourceId);
-		Common::Rect celRect(50, 50, 50, 50);
-		Common::Rect translatedRect;
-		celRect.bottom += view->getHeight(loopNo, celNo);
-		celRect.right += view->getWidth(loopNo, celNo);
+		Common::Rect celRect(50, 50, 50 + view->getWidth(loopNo, celNo), 50 + view->getHeight(loopNo, celNo));
 		view->draw(celRect, celRect, celRect, loopNo, celNo, 255, 0, false);
 		_engine->_gfxScreen->copyRectToScreen(celRect);
 	}






More information about the Scummvm-git-logs mailing list