[Scummvm-cvs-logs] SF.net SVN: scummvm:[47671] scummvm/trunk/engines/sci/graphics/gui.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jan 29 16:46:26 CET 2010


Revision: 47671
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47671&view=rev
Author:   m_kiewitz
Date:     2010-01-29 15:46:22 +0000 (Fri, 29 Jan 2010)

Log Message:
-----------
SCI: fixing cursor in sci32 for clone ;)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/gui.cpp

Modified: scummvm/trunk/engines/sci/graphics/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gui.cpp	2010-01-29 15:07:20 UTC (rev 47670)
+++ scummvm/trunk/engines/sci/graphics/gui.cpp	2010-01-29 15:46:22 UTC (rev 47671)
@@ -996,10 +996,15 @@
 				if (viewId != 0xffff) {
 					Common::Rect celRect;
 					View *view = _gfx->getView(viewId);
+					// Sometimes x,y are bottom right
 					celRect.left = leftPos;
 					celRect.top = topPos;
-					celRect.right = celRect.left + view->getWidth(loopNo, celNo);
-					celRect.bottom = celRect.top + view->getHeight(loopNo, celNo);
+					celRect.right = leftPos + view->getWidth(loopNo, celNo);
+					celRect.bottom = topPos + view->getHeight(loopNo, celNo);
+					//celRect.right = leftPos;
+					//celRect.bottom = topPos; 
+					//celRect.left = celRect.right - view->getWidth(loopNo, celNo);;
+					//celRect.top = celRect.bottom - view->getHeight(loopNo, celNo);
 					celRect.clip(_gfx->_curPort->rect);
 					_gfx->drawCel(view, loopNo, celNo, celRect, priority, 0, scaleX, scaleY);
 				}
@@ -1007,7 +1012,8 @@
 			}
 		}
 	}
-	animateShowPic();
+	_screen->copyToScreen();
+	//animateShowPic();
 }
 
 void SciGui::drawRobot(GuiResourceId robotId) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list