aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorlukaslw2014-07-27 13:27:44 +0200
committerlukaslw2014-07-27 13:27:44 +0200
commit2ccea09be87257e9ff4c5d150e139cbf16742863 (patch)
tree4dd476ef677a4ab4fe80223f79a5377eab53aee5 /engines
parentc1456d273469d3eb876ae5b3d4fd602bf2c488ba (diff)
downloadscummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.tar.gz
scummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.tar.bz2
scummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.zip
PRINCE: showText() - fix for inventory items in wider locations
Diffstat (limited to 'engines')
-rw-r--r--engines/prince/prince.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp
index e3b274d674..840b94c219 100644
--- a/engines/prince/prince.cpp
+++ b/engines/prince/prince.cpp
@@ -1177,8 +1177,13 @@ void PrinceEngine::showTexts(Graphics::Surface *screen) {
continue;
}
- int x = text._x - _picWindowX;
- int y = text._y - _picWindowY;
+ int x = text._x;
+ int y = text._y;
+
+ if (!_showInventoryFlag) {
+ x -= _picWindowX;
+ y -= _picWindowY;
+ }
Common::Array<Common::String> lines;
_font->wordWrapText(text._str, _graph->_frontScreen->w, lines);