diff options
author | Nicola Mettifogo | 2007-08-07 13:54:29 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-07 13:54:29 +0000 |
commit | 4d83622af7771d616e7722c058ef6b075a5cbf1c (patch) | |
tree | de808eb847b46905d2b5d0161e8b355f6087a44b /engines/parallaction/graphics.cpp | |
parent | 797f114aacbd34195d8fd58cb989ac0f5daa655d (diff) | |
download | scummvm-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/graphics.cpp')
-rw-r--r-- | engines/parallaction/graphics.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index fe8d3722cc..e948fa7f26 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -96,6 +96,25 @@ void Gfx::drawBalloon(const Common::Rect& r, uint16 winding) { return; } +void Gfx::showLocationComment(const char *text, bool end) { + + setFont(kFontDialogue); + + int16 w, h; + getStringExtent(const_cast<char*>(text), 130, &w, &h); + + Common::Rect r(w + (end ? 5 : 10), h + 5); + r.moveTo(5, 5); + + floodFill(kBitFront, r, 0); + r.grow(-2); + floodFill(kBitFront, r, 1); + displayWrappedString(const_cast<char*>(text), 3, 5, 0, 130); + + updateScreen(); + + return; +} void Gfx::setPalette(Palette pal, uint32 first, uint32 num) { // printf("setPalette(%i, %i)\n", first, num); |