From 9e98a1edcc7610e9ccdb00026a7d9eb349b0c2ee Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 17 Aug 2014 22:13:45 -0400 Subject: ACCESS: Correct drawing the vertical edges of bubble boxes --- engines/access/bubble_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/access/bubble_box.cpp') diff --git a/engines/access/bubble_box.cpp b/engines/access/bubble_box.cpp index 6ea7ed8a0b..21e104028c 100644 --- a/engines/access/bubble_box.cpp +++ b/engines/access/bubble_box.cpp @@ -204,7 +204,7 @@ void BubbleBox::doBox(int item, int box) { _vm->_screen->_orgY2 = _bounds.bottom; _vm->_screen->_lColor = 1; - int h = _bounds.height() - (_type == TYPE_4) ? 30 : 24; + int h = _bounds.height() - (_type == TYPE_4 ? 30 : 24); int ySize = (h < 0) ? 0 : (h + 12) / 13; int w = _bounds.width() - 24; int xSize = (w < 0) ? 0 : (w + 19) / 20; @@ -242,7 +242,7 @@ void BubbleBox::doBox(int item, int box) { // Draw images to form the sides yp = screen._orgY1 + 12; - for (int y = 0; y < ySize; ++y) { + for (int y = 0; y < ySize; ++y, yp += 13) { screen.plotImage(icons, 44 + y, Common::Point(screen._orgX1, yp)); screen.plotImage(icons, 53 + y, Common::Point(screen._orgX2 - 4, yp)); } -- cgit v1.2.3