diff options
-rw-r--r-- | engines/mutationofjb/room.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mutationofjb/room.cpp b/engines/mutationofjb/room.cpp index 66da3acfb2..5ed6ca3ca2 100644 --- a/engines/mutationofjb/room.cpp +++ b/engines/mutationofjb/room.cpp @@ -61,8 +61,8 @@ void RoomAnimationDecoderCallback::onFrame(int frameNo, Graphics::Surface &surfa if (frameNo1 >= startFrame && frameNo1 < startFrame + object._NA) { const int x = object._x; const int y = object._y; - const int w = object._XL / 4 * 4; - const int h = object._YL / 4 * 4; + const int w = (object._XL + 3) / 4 * 4; // Original code uses this to round up width to a multiple of 4. + const int h = object._YL; Common::Rect rect(x, y, x + w, y + h); const Graphics::Surface sharedSurface = surface.getSubArea(rect); |