[Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.24,1.25
Max Horn
fingolfin at users.sourceforge.net
Sat Jun 7 15:58:04 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv29714
Modified Files:
smush_player.cpp
Log Message:
case 9 was drawStringCentered but should have been drawStringWrapCentered; cleanup
Index: smush_player.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/smush_player.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- smush_player.cpp 7 Jun 2003 00:45:32 -0000 1.24
+++ smush_player.cpp 7 Jun 2003 22:57:27 -0000 1.25
@@ -556,29 +556,17 @@
// 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:
More information about the Scummvm-git-logs
mailing list