aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2017-10-17 19:02:42 -0700
committerThierry Crozat2018-01-23 02:15:35 +0000
commit52952c48a7d89907fa7b8d681a2050a193b0ed88 (patch)
tree7911ed1858a5d62919dc33fd172f34f8bcd10082
parent4d7d8023333cf64d77810f097fd4b72392bda5a7 (diff)
downloadscummvm-rg350-52952c48a7d89907fa7b8d681a2050a193b0ed88.tar.gz
scummvm-rg350-52952c48a7d89907fa7b8d681a2050a193b0ed88.tar.bz2
scummvm-rg350-52952c48a7d89907fa7b8d681a2050a193b0ed88.zip
SUPERNOVA: Fix displaying image missing last row and last column
This also fixes a crash for single row image sections
-rw-r--r--engines/supernova/supernova.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index fc011b27e3..c54ce1cdec 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -405,8 +405,8 @@ void SupernovaEngine::renderImage(MSNImageDecoder &image, int section) {
Common::Rect sectionRect(image._section[section].x1,
image._section[section].y1,
- image._section[section].x2,
- image._section[section].y2);
+ image._section[section].x2 + 1,
+ image._section[section].y2 + 1) ;
if (image._filenumber == 1 || image._filenumber == 2) {
sectionRect.setWidth(640);
sectionRect.setHeight(480);