AminetAminet
Search:
84520 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/misc/GFXPatch1_1.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Patches gfx.lib to v40 on CyberGraphX systems
Author:Andre Osterhues (su0583 at studserver.uni-dortmund.de)
Uploader:Andre Osterhues (su0583 studserver uni-dortmund de)
Type:util/misc
Replaces:GFXPatch.lha
Requires:CyberGraphX, OS3.0
Architecture:m68k-amigaos
Date:1998-07-14
Download:http://aminet.net/util/misc/GFXPatch1_1.lha - View contents
Readme:http://aminet.net/util/misc/GFXPatch1_1.readme
Downloads:719

What is this patch for?
=======================
Some programs (like AmigaAMP) require OS3.1 as they use WriteChunkyPixels()
from graphics.library v40+. Unfortunately, this function does not exist on
OS3.0 Amigas. But we can cheat ;^)

For example, the AmigaAMP readme states that OS3.1 AND PowerUP are needed for
the spectrum analyser. This is not true. OS3.0, CyberGraphX and (of course) a
PowerPC will also do.


How do I install this patch?
============================
All you need is to run this patch AFTER CyberGraphX is initialized.
Copy gfxpatch to C: and insert the line

Run >NIL: C:gfxpatch

into S:Startup-Sequence. IMPORTANT: Place it after(!) the monitors are
started.
The patch does not need to be started in the Startup-Sequence, you can
also run it before starting a "OS3.1 only" program.


What does this patch do?
========================
This program sets the version of graphics.library to 40.0 and patches two
functions:

1) WriteChunkyPixels()
   This function is mapped to the equivalent CyberGraphX function,
   WritePixelArray().

2) NextDisplayInfo()
   This is needed as CyberGraphX treats OS3.0 display IDs different than those
   of OS3.1. The patch temporarily resets the gfx.lib version, runs the
   original function, and sets the gfx.lib version to 40.0 again.
   When using the first (now obsolete) version of this patch, the ScreenMode
   program did not show any CyberGraphX screen modes. This should be fixed by
   this patch.


Why is it safe?
===============
1) The programmers of graphics v39.xx held enough place for future functions.
   In fact, there is room for 4 functions. On my machine, all of these jump
   to 0xfab606, and there is just a return(0):

   fab606       moveq        #0,d0
   fab608       rts

2) If the graphics.library NegSize is smaller than 1058, the patch will not be
   installed.

3) If run on a non-CyberGraphX system, the patch will not be installed.


Note:
=====
This patch might also work on Picasso96 systems, but it was not tested.


Thanks to:
==========
Frank Mariak for the wonderful CyberGraphX system



Have fun with it!

Andre Osterhues


Contents of util/misc/GFXPatch1_1.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 3845    5772  66.6% -lh5- 818f Jul 13  1998 gfxpatch
[generic]                 1154    2378  48.5% -lh5- 42be Jul 13  1998 gfxpatch.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    4999    8150  61.3%            Jul 14  1998

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>