diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index a53b808..40ac803 100644
a
|
b
|
void SmushPlayer::handleTextResource(uint32 subType, int32 subSize, Common::Seek
|
613 | 613 | str = string2; |
614 | 614 | } |
615 | 615 | |
| 616 | debugC(DEBUG_SMUSH, "SmushPlayer::handleTextResource(..) flags:%d str:\"%s\"", flags, str); |
616 | 617 | // flags: |
617 | 618 | // bit 0 - center 1 |
618 | 619 | // bit 1 - not used 2 |
619 | | // bit 2 - ??? 4 |
| 620 | // bit 2 - wrap around 4 |
620 | 621 | // bit 3 - wrap around 8 |
621 | | switch (flags & 9) { |
| 622 | switch (flags & 13) { |
622 | 623 | case 0: |
623 | 624 | sf->drawString(str, _dst, _width, _height, pos_x, pos_y, false); |
624 | 625 | break; |
625 | 626 | case 1: |
626 | 627 | sf->drawString(str, _dst, _width, _height, pos_x, MAX(pos_y, top), true); |
627 | 628 | break; |
| 629 | case 4: |
628 | 630 | case 8: |
| 631 | case 12: |
629 | 632 | // FIXME: Is 'right' the maximum line width here, just |
630 | 633 | // as it is in the next case? It's used several times |
631 | 634 | // in The Dig's intro, where 'left' and 'right' are |
… |
… |
void SmushPlayer::handleTextResource(uint32 subType, int32 subSize, Common::Seek
|
633 | 636 | // handle that correctly. |
634 | 637 | sf->drawStringWrap(str, _dst, _width, _height, pos_x, MAX(pos_y, top), left, right, false); |
635 | 638 | break; |
| 639 | case 5: |
636 | 640 | case 9: |
| 641 | case 13: |
637 | 642 | // In this case, the 'right' parameter is actually the |
638 | 643 | // maximum line width. This explains why it's sometimes |
639 | 644 | // smaller than 'left'. |