aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
Diffstat (limited to 'engines/supernova')
-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();
}