mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
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:
parent
0befb73ecb
commit
4e734c4778
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user