aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-07-04 01:00:27 +0200
committerThierry Crozat2018-01-22 23:42:08 +0000
commit2c17586c76b8f73e6e6fcc883eb0520b8f68a730 (patch)
tree085d79feb4a989d1979ce831c10ab400faf64a2b /engines
parent4a68aef1d6d1a25f4084b1cd3dcdfb36ea36114c (diff)
downloadscummvm-rg350-2c17586c76b8f73e6e6fcc883eb0520b8f68a730.tar.gz
scummvm-rg350-2c17586c76b8f73e6e6fcc883eb0520b8f68a730.tar.bz2
scummvm-rg350-2c17586c76b8f73e6e6fcc883eb0520b8f68a730.zip
SUPERNOVA: Fixes parameters passed to fillRect()
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/supernova.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 4a4ede6ff5..e5a943f9b5 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -481,7 +481,7 @@ void SupernovaEngine::renderText(const char *text) {
void SupernovaEngine::renderBox(int x, int y, int width, int height, byte color) {
Graphics::Surface *screen = _system->lockScreen();
- screen->fillRect(Common::Rect(x, y, width, height), color);
+ screen->fillRect(Common::Rect(x, y, x + width, y + height), color);
_system->unlockScreen();
}