aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-17 22:13:45 -0400
committerPaul Gilbert2014-08-17 22:13:45 -0400
commit9e98a1edcc7610e9ccdb00026a7d9eb349b0c2ee (patch)
treec65e3732606a3f799d7bdad071ccfe0612c42152 /engines
parent38acce33fd95171a5d3a7a00cad57bb4a5711bad (diff)
downloadscummvm-rg350-9e98a1edcc7610e9ccdb00026a7d9eb349b0c2ee.tar.gz
scummvm-rg350-9e98a1edcc7610e9ccdb00026a7d9eb349b0c2ee.tar.bz2
scummvm-rg350-9e98a1edcc7610e9ccdb00026a7d9eb349b0c2ee.zip
ACCESS: Correct drawing the vertical edges of bubble boxes
Diffstat (limited to 'engines')
-rw-r--r--engines/access/bubble_box.cpp4
1 files changed, 2 insertions, 2 deletions
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));
}