Skip to content

Commit

Permalink
ACCESS: Correct drawing the vertical edges of bubble boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 18, 2014
1 parent 38acce3 commit 9e98a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/access/bubble_box.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 9e98a1e

Please sign in to comment.