aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-10 18:39:52 +0000
committerMartin Kiewitz2009-10-10 18:39:52 +0000
commit7f2259d2801285eac9d56e01231c250d889069f7 (patch)
treedd653a8c27e9bbfd3392e6b069b96ce45e51e302 /engines/sci/gui
parent0a3e03a1669a5c51edbfcb078d58122d13277ecc (diff)
downloadscummvm-rg350-7f2259d2801285eac9d56e01231c250d889069f7.tar.gz
scummvm-rg350-7f2259d2801285eac9d56e01231c250d889069f7.tar.bz2
scummvm-rg350-7f2259d2801285eac9d56e01231c250d889069f7.zip
SCI/newgui: changed GuiAnimateList struct
svn-id: r44882
Diffstat (limited to 'engines/sci/gui')
-rw-r--r--engines/sci/gui/gui_gfx.cpp24
-rw-r--r--engines/sci/gui/gui_helpers.h10
2 files changed, 19 insertions, 15 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 32b3d0f0e9..c80ff7da96 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -920,22 +920,22 @@ Common::List<GuiAnimateList> *SciGuiGfx::AnimateMakeSortedList(List *list) {
return sortedList;
// First convert the given List to Common::List
- while (curNode) {
- curObject = curNode->value;
- listHelper.address = curAddress;
- listHelper.y = (int16)GET_SEL32V(curObject, y);
- listHelper.z = (int16)GET_SEL32V(curObject, priority);
- sortedList->push_back(listHelper);
+// while (curNode) {
+// curObject = curNode->value;
+// listHelper.address = curAddress;
+// listHelper.y = (int16)GET_SEL32V(curObject, y);
+// listHelper.z = (int16)GET_SEL32V(curObject, priority);
+// sortedList->push_back(listHelper);
- curAddress = curNode->succ;
- curNode = _s->_segMan->lookupNode(curAddress);
- }
+// curAddress = curNode->succ;
+// curNode = _s->_segMan->lookupNode(curAddress);
+// }
// Now do a bubble sort on this Common::List
- if (sortedList->size() < 2)
- return sortedList;
+// if (sortedList->size() < 2)
+// return sortedList;
- sortedList->begin();
+// sortedList->begin();
// Common::List<ExecStack>::iterator iter;
// for (iter = s->_executionStack.begin();
// iter != s->_executionStack.end(); ++iter) {
diff --git a/engines/sci/gui/gui_helpers.h b/engines/sci/gui/gui_helpers.h
index 3a7fa67e14..f66715f275 100644
--- a/engines/sci/gui/gui_helpers.h
+++ b/engines/sci/gui/gui_helpers.h
@@ -72,9 +72,13 @@ struct GuiWindow : public GuiPort {
};
struct GuiAnimateList {
- reg_t address;
- int16 y;
- int16 z;
+ reg_t object;
+ GuiResourceId viewId;
+ GuiViewLoopNo loopNo;
+ GuiViewCelNo celNo;
+ int16 x, y, z;
+ uint16 priority, signal;
+ Common::Rect celRect;
};
struct GuiCast {