[futurebasic] Re: [FB] Function Junction II update

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: "Pete" <furbies@...>
Date: Mon, 17 May 1999 07:29:30 +1000

about refering to A5.

There's a tech note on Staz's site about REGISTER(A5)

It says:

[42] Using Register Based Patterns

It has long been a habit of ours to use register based offsets to get to a
pattern. This is how we normally did it:


On a small number of machines, (actually, we only had it happen once) this
can cause a crash. The revised call will always work.


We have modified the List Manager CDEF (LMCD) in program Generator to
contain the revised pattern offset. You may down load the new version here.
Use ResEdit to install it in your project file.



> Attention all FnJnII owners!
> Due to the problems with [_currentA5] on newer Macs/OSes, the following
> "fixes" need to be made to Function Junction II. These have been done in
> the "master copy" that is currently sold, but they're small enough that
> those who already have FnJnII will probably prefer to just make these
> changes manually, rather than re-downloading the whole file.
> In both FN selectionRect.BAS and FN selectionRect2.BAS
> replace
>   penPat;8 = [_currentA5]+_gray                   ' find gray pattern
> with
>   CALL STUFFHEX(@penPat,"AA55AA55AA55AA55")       'NEW fix for newer Mac
> OSes
> In FN marchingAnts.BAS
> replace
>   blackPat;8 = [_currentA5]+_black                ' copy black pat
> with
>   CALL STUFFHEX(@blackPat,"FFFFFFFFFFFFFFFF")     'NEW fix for newer Mac
> OSes
> And in FN toggleMenuBar.BAS
> replace
>         rect;8 = [_currentA5] + _screenBits.bounds 'get screen rect
> with
>         devH& = FN GETMAINDEVICE          'NEW for new Mac OSes where
>         BLOCKMOVE [devH&]+_gdRect,@rect,8 'we can't use _currentA5!
> Since my antique G3 doesn't show the problem, I've relied on user reports
> to come up with these - I have _not_ been able to find any workaround (or
> verify if there is a problem) with the INIT Shell, which also uses
> [_currentA5]. So if anyone has any ideas there, they'd be much
> appreciated.
> Bill