[comp.sys.mac] Remember ICON problem at startup

joseph@cooper.cooper.EDU (Joe Giannuzzi) (09/16/89)

I have noticed a problem recently that occurs when Remember displays
its icon at startup.  I have IconWrap 1.2 and Remember 1.3 in the
system folder.  IconWrap allows 12 icons to be displayed per row.
If Remember's icon is the 12th icon on the row, it incorrectly appears
as the 1st icon on the next row.  The next icon then appears directly
on the Remeber icon.  Also, if Remember is the 1st icon in a row, the
next icon similarly clobbers it.  I don't know if the problem is with
IconWrap or Remember, but I have determined that of all the INIT's and
CDEV's I boot with, the problem only occurs with Remember.

joseph@cooper.cooper.edu

thecloud@dhw68k.cts.com (Ken McLeod) (09/19/89)

In article <1760@cooper.cooper.EDU> joseph@cooper.cooper.EDU (Joe Giannuzzi) writes:
>I have noticed a problem recently that occurs when Remember displays
>its icon at startup.  I have IconWrap 1.2 and Remember 1.3 in the
>system folder.  IconWrap allows 12 icons to be displayed per row.
>If Remember's icon is the 12th icon on the row, it incorrectly appears
>as the 1st icon on the next row.  The next icon then appears directly
>on the Remeber icon.  Also, if Remember is the 1st icon in a row, the
>next icon similarly clobbers it.  I don't know if the problem is with
>IconWrap or Remember, but I have determined that of all the INIT's and
>CDEV's I boot with, the problem only occurs with Remember.

  The problem is with Remember; it uses non-standard "ShowINIT clone" code
that calculates the checksum for the next icon *before* drawing its own.
This isn't a problem unless the icon is in the last horizontal opening in a
given row... then, when IconWrap's code is called, the checksum is "wrong",
and the icon is drawn at (correctPosition + 1). Ray Lau's SFVolINIT 1.5
behaves the same way, as does Talking Moose 2.1 and several others. There
have been several translations of Paul Mercer's original (assembler) code,
usually attempting to incorporate some extra functionality at the cost of
"100% ShowINIT compatibility", since other INITs don't know about vertical
offset schemes, etc.. I posted "CShowINIT" a few months back; it's a
literal translation of the latest ShowINIT code (supports color icons) for
the LightspeedC/THINK C compiler... mail me if you want a copy.

  Anyway, the solution to the Remember problem (and other INITs that
behave similarly) is to rename it so it loads in a different order. If
Remember doesn't want its name changed, just rename one of the INITs
that currently loads ahead of it.

  Hope this helps...
--ken
-- 
==========     .......     =============================================
Ken McLeod    :.     .:    UUCP: ...{spsd,zardoz,felix}!dhw68k!thecloud
==========   :::.. ..:::   INTERNET: thecloud@dhw68k.cts.com
                ////       =============================================