From 15d5ceffbd73e63380d8c72a507c27315fbfeebf Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 7 Jun 2003 22:57:27 +0000 Subject: case 9 was drawStringCentered but should have been drawStringWrapCentered; cleanup svn-id: r8385 --- scumm/smush/smush_player.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'scumm') 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: -- cgit v1.2.3