diff options
author | Max Horn | 2003-06-07 22:57:27 +0000 |
---|---|---|
committer | Max Horn | 2003-06-07 22:57:27 +0000 |
commit | 15d5ceffbd73e63380d8c72a507c27315fbfeebf (patch) | |
tree | 85d78935010244408b202975cf7cf10ba6cf04e7 /scumm | |
parent | 209cd912cfdfc6fd5b69c9c3b77b227f6b6324aa (diff) | |
download | scummvm-rg350-15d5ceffbd73e63380d8c72a507c27315fbfeebf.tar.gz scummvm-rg350-15d5ceffbd73e63380d8c72a507c27315fbfeebf.tar.bz2 scummvm-rg350-15d5ceffbd73e63380d8c72a507c27315fbfeebf.zip |
case 9 was drawStringCentered but should have been drawStringWrapCentered; cleanup
svn-id: r8385
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/smush/smush_player.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index a7efd84ca8..311d375431 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -556,29 +556,17 @@ void SmushPlayer::handleTextResource(Chunk &b) { // bit 1 - not used 2 // bit 2 - ??? 4 // bit 3 - wrap around 8 - switch (flags) { + switch (flags & 9) { case 0: sf->drawStringAbsolute(str, _data, _width, pos_x, pos_y); break; case 1: sf->drawStringCentered(str, _data, _width, _height, MAX(pos_y, top), left, width, pos_x); break; - case 4: - sf->drawStringAbsolute(str, _data, _width, pos_x, pos_y); - break; - case 5: - sf->drawStringCentered(str, _data, _width, _height, MAX(pos_y, top), left, width, pos_x); - break; case 8: sf->drawStringWrap(str, _data, _width, _height, pos_x, MAX(pos_y, top), width); break; case 9: - sf->drawStringCentered(str, _data, _width, _height, MAX(pos_y, top), left, width, pos_x); - break; - case 12: - sf->drawStringWrap(str, _data, _width, _height, pos_x, MAX(pos_y, top), width); - break; - case 13: sf->drawStringWrapCentered(str, _data, _width, _height, pos_x, MAX(pos_y, top), width); break; default: |