[Scummvm-cvs-logs] SF.net SVN: scummvm:[44618] scummvm/trunk/engines/sci/engine/kgraphics.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Oct 4 18:35:14 CEST 2009


Revision: 44618
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44618&view=rev
Author:   m_kiewitz
Date:     2009-10-04 16:35:02 +0000 (Sun, 04 Oct 2009)

Log Message:
-----------
SCI/gui: renaming...

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kgraphics.cpp

Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-10-04 16:26:43 UTC (rev 44617)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp	2009-10-04 16:35:02 UTC (rev 44618)
@@ -895,7 +895,7 @@
 #define K_DRAWPIC_FLAG_MIRRORED (1 << 14)
 
 reg_t kDrawPic(EngineState *s, int argc, reg_t *argv) {
-	sciResourceId pictureId = argv[0].toUint16();
+	GUIResourceId pictureId = argv[0].toUint16();
 	uint16 flags = 0;
 	uint16 style = 1;
 	int16 EGApaletteNo = -1;
@@ -1556,8 +1556,9 @@
 }
 
 reg_t kAddToPic(EngineState *s, int argc, reg_t *argv) {
-	sciResourceId viewId;
-	uint16 loopNo, cellNo;
+	GUIResourceId viewId;
+	GUIViewLoopNo loopNo;
+	GUIViewCellNo cellNo;
 	int16 leftPos, topPos, priority, control;
 
 	switch (argc) {
@@ -1568,8 +1569,8 @@
 		break;
 	case 7:
 		viewId = argv[0].toUint16();
-		loopNo = argv[1].toUint16();
-		cellNo = argv[2].toUint16();
+		loopNo = argv[1].toSint16();
+		cellNo = argv[2].toSint16();
 		leftPos = argv[3].toSint16();
 		topPos = argv[4].toSint16();
 		priority = argv[5].toSint16();
@@ -1615,15 +1616,15 @@
 }
 
 reg_t kDrawCel(EngineState *s, int argc, reg_t *argv) {
-	int view = argv[0].toSint16();
-	int loop = argv[1].toSint16();
-	int cel = argv[2].toSint16();
+	GUIResourceId viewId = argv[0].toSint16();
+	GUIViewLoopNo loopNo = argv[1].toSint16();
+	GUIViewCellNo cellNo = argv[2].toSint16();
 	int x = argv[3].toSint16();
 	int y = argv[4].toSint16();
 	int priority = (argc > 5) ? argv[5].toUint16()  : -1;
 	int paletteNo = (argc > 6) ? argv[6].toSint16() : 0;
 
-	s->gui->drawCell(view, loop, cel, x, y, priority, paletteNo);
+	s->gui->drawCell(viewId, loopNo, cellNo, x, y, priority, paletteNo);
 
 	return s->r_acc;
 }


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