aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_talk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-15 21:43:09 -0400
committerPaul Gilbert2015-07-15 21:43:09 -0400
commitf4bd1b594851fe5ffd0bc74b593c5295c017e2bf (patch)
treeae159b04586d27ad29633a5c5ffa1a513e670846 /engines/sherlock/tattoo/widget_talk.cpp
parent20d122bd8bcee4fdd22955e56de57e74e464c6c7 (diff)
downloadscummvm-rg350-f4bd1b594851fe5ffd0bc74b593c5295c017e2bf.tar.gz
scummvm-rg350-f4bd1b594851fe5ffd0bc74b593c5295c017e2bf.tar.bz2
scummvm-rg350-f4bd1b594851fe5ffd0bc74b593c5295c017e2bf.zip
SHERLOCK: RT: Fix display of scrollbar in the talk window
Diffstat (limited to 'engines/sherlock/tattoo/widget_talk.cpp')
-rw-r--r--engines/sherlock/tattoo/widget_talk.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index 8db44aa453..6e4ef19928 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -78,18 +78,10 @@ void WidgetTalk::getTalkWindowSize() {
// Set up the height to a constrained amount, and add extra width for the scrollbar
width += BUTTON_SIZE + 3;
height = (_surface.fontHeight() + 1) * 6 + 9;
- _scroll = false;
+ _scroll = true;
}
_bounds = Common::Rect(width, height);
-
- // Allocate a surface for the window
- _surface.create(_bounds.width(), _bounds.height());
- _surface.fill(TRANSPARENCY);
-
- // Form the background for the new window
- makeInfoArea();
- render(HL_CHANGED_HIGHLIGHTS);
}
void WidgetTalk::load() {
@@ -124,16 +116,6 @@ void WidgetTalk::load() {
// Form the background for the new window
makeInfoArea();
-
- // If a scrollbar is needed, draw it in
- if (_scroll) {
- int xp = _surface.w() - BUTTON_SIZE - 6;
- _surface.vLine(xp, 3, _surface.h() - 4, INFO_TOP);
- _surface.vLine(xp + 1, 3, _surface.h() - 4, INFO_MIDDLE);
- _surface.vLine(xp + 2, 3, _surface.h() - 4, INFO_BOTTOM);
- _surface.transBlitFrom(images[6], Common::Point(xp - 1, 1));
- _surface.transBlitFrom(images[7], Common::Point(xp - 1, _surface.h() - 4));
- }
}
void WidgetTalk::handleEvents() {