From 5f8d882172df60cee5e504d531764b7faa95b9c2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 29 Mar 2020 22:03:08 +0200 Subject: [PATCH] DIRECTOR: Implement kTransCenterOutSquare --- engines/director/transitions.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engines/director/transitions.cpp b/engines/director/transitions.cpp index 60cce3fc337..d0f47dd1996 100644 --- a/engines/director/transitions.cpp +++ b/engines/director/transitions.cpp @@ -187,6 +187,15 @@ void Frame::playTransition(Score *score) { rfrom = rto; break; + case kTransCenterOutSquare: // 9 + t.ypos += t.yStepSize; + rto.setHeight(t.ypos * 2); + t.xpos += t.xStepSize; + rto.setWidth(t.xpos * 2); + rto.moveTo(clipRect.width() / 2 - t.xpos, clipRect.height() / 2 - t.ypos); + rfrom = rto; + break; + case kTransCoverDown: // 29 rto.setHeight(clipRect.height()); rto.moveTo(0, -clipRect.height() + t.yStepSize * i);