[ scummvm-Patches-641704 ] SMUSH: Text rendering regression

noreply at sourceforge.net noreply at sourceforge.net
Thu Nov 21 08:30:12 CET 2002


Patches item #641704, was opened at 2002-11-21 08:30
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=641704&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: SMUSH: Text rendering regression

Initial Comment:
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.




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=641704&group_id=37116




More information about the Scummvm-tracker mailing list