diff options
author | lukaslw | 2014-07-27 13:27:44 +0200 |
---|---|---|
committer | lukaslw | 2014-07-27 13:27:44 +0200 |
commit | 2ccea09be87257e9ff4c5d150e139cbf16742863 (patch) | |
tree | 4dd476ef677a4ab4fe80223f79a5377eab53aee5 | |
parent | c1456d273469d3eb876ae5b3d4fd602bf2c488ba (diff) | |
download | scummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.tar.gz scummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.tar.bz2 scummvm-rg350-2ccea09be87257e9ff4c5d150e139cbf16742863.zip |
PRINCE: showText() - fix for inventory items in wider locations
-rw-r--r-- | engines/prince/prince.cpp | 9 |
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); |