[comp.sys.mac] Pointing Device CDEV patch

thecloud@dhw68k.cts.com (Ken McLeod) (04/26/89)

  I've noticed that a lot of people seem to be using the Pointing Device
CDEV (which appeared in comp.binaries.mac a little while ago), so the
following information may hopefully be of some use...

Turbo Mouse/Pointing Device INIT patch (V1.2)
=============================================

  The "Turbo Mouse" cdev (version 1.2) contains code that calls _InitGraf
at startup without properly saving and restoring register A5. This causes
subsequent INITs to crash if they try to call _InitGraf.  Additionally,
the code that displays the Turbo Mouse "icon" at startup is non-standard,
causing a potential conflict with icons displayed by other INITs.

  The following patches branch around the offending code, with the effect
that no icon is displayed at startup. Use Fedit or other disk/file editor
to apply them to a COPY of the "Turbo Mouse" cdev.  These patches can also
be applied to the "Pointing Device" cdev; its code is identical.

  Search for:    49EE FF78 2F0C A86E    (1 occurrence)
  Replace with:  6000 0006 " "  " "

  Search for:    4AAE FFF0 6700 0042    (2 occurrences; change both)
  Replace with:  " "  " "  6000 0048

  After applying the patches, you can optionally restore the startup icon.
Use ResEdit to copy a standalone "ShowINIT" INIT resource from another INIT
file, then paste it into Turbo Mouse (or Pointing Device).  This "ShowINIT"
resource can be found in SFScrollINIT, Front&Center, and many others. You
will need to renumber both INITs as follows:

  INIT:  "Turbo Mouse" (or "Pointing Device")   ID = 1
	 "ShowINIT"                             ID = -4064

  The actual ID assigned to Turbo Mouse is unimportant; however, "ShowINIT"
must have the same ID as the file's icon (stored as an ICN# resource.)
For 'cdev' files, this ID is always -4064.


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