aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-03-25 01:40:07 +0100
committerTorbjörn Andersson2016-03-25 01:40:07 +0100
commit60b763bd4cc5e8bcbd5638ade0e414ff7c75d2c5 (patch)
tree6216218acf8fe898423f0668685311518d2e8ebb
parentf1b6542fd2f705b771f8c46efb328b783f9c5d78 (diff)
downloadscummvm-rg350-60b763bd4cc5e8bcbd5638ade0e414ff7c75d2c5.tar.gz
scummvm-rg350-60b763bd4cc5e8bcbd5638ade0e414ff7c75d2c5.tar.bz2
scummvm-rg350-60b763bd4cc5e8bcbd5638ade0e414ff7c75d2c5.zip
SHERLOCK: Fix bug #7084 ("Crash when taking inventory")
This was part regression (ManagedSurface is picky about the order of the parameters to the line drawing functions), part bug since it was drawing a horizontal line instead of a vertical. This call draws a very short vertical line to separate the rightmost "join" of the middle horizontal bar in the inventory dialog from the scrollbar. Unless you know what you're looking for, it's pretty hard to spot the difference. Thanks to dreammaster for figuring out the proper fix, while I was still trying to figure out what it was trying to draw.
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index 34331f0eae..9f126cf7a7 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -546,7 +546,7 @@ void WidgetInventory::drawBars() {
_surface.SHtransBlitFrom(images[7], Common::Point(x - 1, INVENTORY_YSIZE + 2));
}
- _surface.hLine(x + 2, INVENTORY_YSIZE + 2, INVENTORY_YSIZE + 8, INFO_BOTTOM);
+ _surface.vLine(x + 2, INVENTORY_YSIZE + 2, INVENTORY_YSIZE + 8, INFO_BOTTOM);
}
void WidgetInventory::drawInventory() {