SUPERNOVA: Fixes parameters passed to fillRect()

This commit is contained in:
Joseph-Eugene Winzer 2017-07-04 01:00:27 +02:00 committed by Thierry Crozat
parent 4a68aef1d6
commit 2c17586c76

View file

@ -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();
}