Ticket #2772: ff-wrap.diff
File ff-wrap.diff, 821 bytes (added by , 18 years ago) |
---|
-
engines/simon/string.cpp
365 365 366 366 if (getGameType() == GType_FF) { 367 367 uint16 b, pixels, spaces; 368 uint16 curWdth = width;369 368 370 369 while (1) { 371 string2 = getPixelLength(string, curWdth, pixels);370 string2 = getPixelLength(string, width, pixels); 372 371 if (*string2 == 0) { 373 372 spaces = (width - pixels) / 12; 374 373 if (spaces != 0) 375 374 spaces--; 376 375 while (spaces) { 377 *convertedString2++ =' ';376 *convertedString2++ = ' '; 378 377 spaces--; 379 378 } 380 379 strcpy(convertedString2, string); … … 400 399 y -= textHeight; 401 400 if (y < 2) 402 401 y = 2; 403 curWdth = pixels;404 402 string = string2; 405 403 } 406 404 } else {