Font_ApplyFields
Tony van der Hoff
tony at mk-net.demon.co.uk
Wed Oct 31 08:59:27 GMT 2001
On 30 Oct 2001, in message <ce11abd14a.tom at compton.compton.nu>, Tom Hughes
<tom at compton.nu> wrote:
> 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.
>
Oops, of course! Thanks Tom. Now fixed.
--
Tony van der Hoff | MailTo:tony at mk-net.demon.co.uk
| MailTo:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-team
mailing list