Font_ApplyFields

Tom Hughes tom at compton.nu
Tue Oct 30 17:38:12 GMT 2001


In message <328f8dd14a.Tony at mk-net.demon.co.uk>
          Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:

> Kevin Bracey wrote:
> 
> > In all versions of FontManager up to and including 3.36, Font_ApplyFields
> > corrupted R5-R7. The OSLib veneers don't know this, so font_apply_fields
> > ends up not being APCS compliant.
> 
> The only way I can see of fixing this is produce a hand-crafted veneer which
> saves and restores these registers around the SWI call, and pathch it in to
> the library a similar fashion to OSReadVarValSize. Is there a better way?

Just add R5?, R6?, R7? to the description and DefMod will assume
they are corrupted and generate code to preserve them.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the oslib-team mailing list