aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-09 13:25:32 +0000
committerMartin Kiewitz2009-10-09 13:25:32 +0000
commit79bbcdac7dc3866b435e44a83727b9f0a5088ba3 (patch)
treea4441310acc44a1c5829d222fc530d515fe7ade5
parented5a4625d5c0f6cfdde588ff470d8db90e4d914b (diff)
downloadscummvm-rg350-79bbcdac7dc3866b435e44a83727b9f0a5088ba3.tar.gz
scummvm-rg350-79bbcdac7dc3866b435e44a83727b9f0a5088ba3.tar.bz2
scummvm-rg350-79bbcdac7dc3866b435e44a83727b9f0a5088ba3.zip
SCI/newgui: some more priority band usage in kAnimate
svn-id: r44826
-rw-r--r--engines/sci/gui/gui_gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 1c5874eb3e..b296668acd 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -1204,7 +1204,7 @@ void SciGuiGfx::AnimateFill(List *list, byte &old_picNotValid) {
PUT_SEL32V(curObject, nsBottom, celRect.bottom);
if (!(signal & SCI_ANIMATE_SIGNAL_FIXEDPRIORITY))
- PUT_SEL32V(curObject, priority, 0); // CoordPri(y) FIXME
+ PUT_SEL32V(curObject, priority, CoordinateToPriority(y));
if (signal & SCI_ANIMATE_SIGNAL_NOUPDATE) {
if (signal & (SCI_ANIMATE_SIGNAL_FORCEUPDATE | SCI_ANIMATE_SIGNAL_VIEWUPDATED)
@@ -1334,7 +1334,7 @@ void SciGuiGfx::AnimateUpdate(List *list) {
signal[listNr] &= 0xFFFF ^ (SCI_ANIMATE_SIGNAL_STOPUPDATE | SCI_ANIMATE_SIGNAL_VIEWUPDATED | SCI_ANIMATE_SIGNAL_NOUPDATE | SCI_ANIMATE_SIGNAL_FORCEUPDATE);
if ((signal[listNr] & SCI_ANIMATE_SIGNAL_IGNOREACTOR) == 0) {
rect = celRect[listNr];
- rect.top = rect.top; // CLIP<int16>(PriCoord(zs[i]) - 1, rect.top, rect.bottom - 1);
+ rect.top = CLIP<int16>(PriorityToCoordinate(z[listNr]) - 1, rect.top, rect.bottom - 1);
FillRect(rect, SCI_SCREEN_MASK_CONTROL, 0, 0, 15);
}
}