Opened 20 years ago
Closed 20 years ago
Last modified 4 years ago
#8134 closed patch
SMUSH: Text rendering regression
|Reported by:||eriktorbjorn||Owned by:||aquadran|
A few days ago the text rendering for the Full Throttle intro movies - and possibly others - broke slightly. I believe it was when drawStringWrapCentered() was added. This patch makes the following changes to it:
* Wrap the lines to fit according to the 'width' parameter instead of the frame (screen?) width, unless 'width' is greater than the frame width.
* Ensure that the resulting text is never positioned so that it'd stick outside the left or right side of the screen.
In particular, the string "...but you have business know-how and killer instincts that I respect" is centered around X position -97, so there's simply no way to get it to look reasonable without adjusting it afterwards.
I don't know whether or not this is consistent with the original behaviour, but at least it should behave sanely.
Ticket imported from: #641704. Ticket imported from: patches/239.
Change History (3)
by , 20 years ago
comment:1 by , 20 years ago
|Status:||new → closed|
comment:2 by , 4 years ago
|Component:||→ Engine: SCUMM|
Patch against a November 20 CVS snapshot