NANCY: Correct viewport panning

Fixed an issue where the viewport would wrap around once
even when set to kPanLeftRight mode.
This commit is contained in:
Kaloyan Chehlarski 2023-04-13 12:28:15 +03:00
parent 0befb73ecb
commit 4e734c4778

View File

@ -186,6 +186,8 @@ void Viewport::loadVideo(const Common::String &filename, uint frameNr, uint vert
_videoFormat = format;
enableEdges(kUp | kDown | kLeft | kRight);
_panningType = panningType;
setFrame(frameNr);
setVerticalScroll(verticalScroll);
@ -197,7 +199,6 @@ void Viewport::loadVideo(const Common::String &filename, uint frameNr, uint vert
_movementLastFrame = 0;
_nextMovementTime = 0;
_panningType = panningType;
}
void Viewport::setFrame(uint frameNr) {