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
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
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.