From 79bbcdac7dc3866b435e44a83727b9f0a5088ba3 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 9 Oct 2009 13:25:32 +0000 Subject: [PATCH] SCI/newgui: some more priority band usage in kAnimate svn-id: r44826 --- engines/sci/gui/gui_gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 1c5874eb3e8..b296668acd7 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(PriCoord(zs[i]) - 1, rect.top, rect.bottom - 1); + rect.top = CLIP(PriorityToCoordinate(z[listNr]) - 1, rect.top, rect.bottom - 1); FillRect(rect, SCI_SCREEN_MASK_CONTROL, 0, 0, 15); } }