aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/graphics.cpp
diff options
context:
space:
mode:
authorchrilith2015-01-23 13:11:28 +0100
committerchrilith2015-01-23 14:29:16 +0100
commit3839d9ce0b0b746da62cd3380f91a48c9748b033 (patch)
treeeb481fafdc683e0fc35a3fcf0ed587bccaa643b3 /engines/mortevielle/graphics.cpp
parentd75fbe79f064e3ee017764024aac173a7d599583 (diff)
downloadscummvm-rg350-3839d9ce0b0b746da62cd3380f91a48c9748b033.tar.gz
scummvm-rg350-3839d9ce0b0b746da62cd3380f91a48c9748b033.tar.bz2
scummvm-rg350-3839d9ce0b0b746da62cd3380f91a48c9748b033.zip
MORTEVIELLE: Fixed drawBox() to match original code
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r--engines/mortevielle/graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp
index 553c1a759e..aa479fdd44 100644
--- a/engines/mortevielle/graphics.cpp
+++ b/engines/mortevielle/graphics.cpp
@@ -1019,6 +1019,8 @@ void ScreenSurface::writeCharacter(const Common::Point &pt, unsigned char ch, in
* simulate the original 640x400 surface, all Y values have to be doubled
*/
void ScreenSurface::drawBox(int x, int y, int dx, int dy, int col) {
+ dx++; dy++; // Original function draws 1px bigger
+
Graphics::Surface destSurface = lockArea(Common::Rect(x, y * 2, x + dx, (y + dy) * 2));
destSurface.hLine(0, 0, dx, col);