aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/location.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-07 13:54:29 +0000
committerNicola Mettifogo2007-08-07 13:54:29 +0000
commit4d83622af7771d616e7722c058ef6b075a5cbf1c (patch)
treede808eb847b46905d2b5d0161e8b355f6087a44b /engines/parallaction/location.cpp
parent797f114aacbd34195d8fd58cb989ac0f5daa655d (diff)
downloadscummvm-rg350-4d83622af7771d616e7722c058ef6b075a5cbf1c.tar.gz
scummvm-rg350-4d83622af7771d616e7722c058ef6b075a5cbf1c.tar.bz2
scummvm-rg350-4d83622af7771d616e7722c058ef6b075a5cbf1c.zip
Location comments are now displayed by a single Gfx function.
svn-id: r28481
Diffstat (limited to 'engines/parallaction/location.cpp')
-rw-r--r--engines/parallaction/location.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp
index 9ab62eb40c..cd14e0efa2 100644
--- a/engines/parallaction/location.cpp
+++ b/engines/parallaction/location.cpp
@@ -431,21 +431,10 @@ void Parallaction::doLocationEnterTransition() {
jobEraseAnimations(NULL, NULL);
jobDisplayAnimations(NULL, NULL);
- _gfx->setFont(kFontDialogue);
_gfx->swapBuffers();
_gfx->copyScreen(Gfx::kBitFront, Gfx::kBitBack);
- int16 w, h;
- _gfx->getStringExtent(_location._comment, 130, &w, &h);
-
- Common::Rect r(10 + w, 5 + h);
- r.moveTo(5, 5);
- _gfx->floodFill(Gfx::kBitFront, r, 0);
- r.grow(-2);
- _gfx->floodFill(Gfx::kBitFront, r, 1);
- _gfx->displayWrappedString(_location._comment, 3, 5, 0, 130);
-
- _gfx->updateScreen();
+ _gfx->showLocationComment(_location._comment);
waitUntilLeftClick();
_gfx->copyScreen(Gfx::kBitBack, Gfx::kBitFront );