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

util/wb/PowerIconsSrc.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:PowerIcons source code, last 68k release
Author:elena at elenadomain.it
Uploader:elena elenadomain it
Type:util/wb
Version:1.06
Requires:AmigaOS 3.9, VBCC C Compiler, libz
Architecture:generic
Date:2011-07-04
Download:http://aminet.net/util/wb/PowerIconsSrc.lha - View contents
Readme:http://aminet.net/util/wb/PowerIconsSrc.readme
Downloads:837

 LICENSE
 -------
 -These sources have been released for free to the Amiga community but I still
maintain
  the (c)opyright on them;
 -Anybody using them, entirely or partially, inside his own project must specify
their
  original author in a note;
 -ANY USAGE OF THESE SOURCES OR PART(S) OF THEM FOR COMMERCIAL PURPOSES OR IN
COMMERCIAL
  PROGRAMS IS STRICTLY FORBIDDEN!


 PLEASE READ
 -----------
 It's many years since I released PowerIcons to the Amiga community.
 At those early times, AmigaOS4 developers were still showing no intention to
implement
 a 32-bit icon support in the new icon.library and Workbench.
 On MorphOS's side, Ambient was still a very poor, little useable and crashful
 desktop, even if first introducing a png-based 32-bit icon system.
 I had to chose an icon format for PowerIcons, and thus, just to avoid
introducing
 a new, propertary one, I decided to follow the only one available, i.e the
single
 image, png-based format used by Ambient.

 Many things changed or evolved since - but one thing apparently survived: an
entire
 community of people, both users and developers, still stuck to the old,
68K-based
 AmigaOS 3.9, possibly running on emulators as UAE. And still going mad with
 patches over patches over patches in order to make their desktop and operating
 system looking a bit less obsolete.

 Since some years I abandoned definitely any developing activity finalized to
improve
 my system in some way, or even just involving direct use of the AmigaOS. I'm
still using
 an Amiga-based system for my works of graphician and researcher (along with
PCs, of
 course) but I now limit to write C programs when I need them, and which do
mainly
 calculus, using OS calls only where strictly needed. Read: I'm no longer an
"Amiga
 developer" in the strict sense. All my previous public projects are abandoned.

 But recently I heard notice of some 68K fanatics out there still fighting with
icons
 and conflicts between patches, and related projects. I also heard that somebody
is
 seriously interested in gaining access to the sources of PowerIcons in order to
update
 it, fix compatibility with other aggressive patches, maybe introducing support
for the
 double-image icons, or even integrating the code in other bigger projects.

 So I decided to release them, finally. After all, if somebody is interested, I
have
 nothing to gain or to loss. So enjoy them. And good work.


 ABOUT THE SOURCES
 -----------------

 First please don't blame me if you don't like my coding style. I kindly
accepted to
 release them for free and in the state they originally were, so send your
criticisms or
 insults to >NIL:
 The makefile also is a stupid mess, I never liked playing with makefiles,
please accept.

 The sources compile with VBCC, but they can be easily adapted for any other C
compiler.

 LibZ is required for linking because the uncompress() function is used by
GetPNGPicture.c.

 The sources were conditionally valid for both 68K and MorphOS PPC. You simply
 drop all PPC stuff (#undef __MORPHOS__) (mainly entry points of the patched
functions).
 Note that the PPC version was never really useful to anybody except me. Ambient
now
 is mature enough. The special AmigaOS4 version is not included here, but the
same thing
 applies: AmigaOS4 has its native 32-bit, double image icon support since times,
PI for
 OS4 had (by luck) a very short useful life.

 Sorry, the code is not extensively commented, just because it wasn't initially
 intended for publication - only some comments useful to the developer, myself,
were
 present. You need deep knowledge of AmigaOS, in particularly of icon.library,
and
 some headaches, before you can understand many passages. Many tricks also were
 emploied to integrate the patch acceptably inside a system which was never
designed
 to support 32-bit icons, and to work with DefIcons and RAWBInfo! And also, many
tricks
 and data caches used to speed up icon loading, drawing and saving back were
studied
 and implemented. Evil things... still using what I would call a very compact
and essential
 code, when compared to the standards. So please put your hands and mind on at
your own
 risk!

 Patched IconLibrary funcions are referenced as XYZ_New() with acronyms, eg.
GIT_New is
 GetIconTagList, DIS_New is DrawIconState, GIR_New is GetIconRectangle, etc.

 The icon format, so all tags for tooltypes, etc. was deduced by reverse
engineering
 the very first png icon format used by early verions of Ambient - and partially
 extended to cover specific Workbench options and needs.

 Please don't email me asking help because I honestly don't remember almost
anything
 of what I wrote and so I would be of little or no help. I put my hand in that
code
 last time at least seven years ago!

 Please also note that many portions of the code may look strange because they
were
 source-level optimized, i.e written keeping in mind how the resulting ASM would
look
 like, for speed purposes. I'm in no way an "academical" programmer.

 One thing I remember is the alpha-blitting functions, where I choose a very
little
 compromise between mathematical correctness and speed (in the case somebody
will notice
 something strange with the relative code).

 The code is assumed to be (empirically) bug-free - even if, as always stated,
conflicts
 with other concurring patches could never be guaranted.

 For any other info and detail about PowerIcons, please refer to the
documentation from
 the original PowerIcons package found on Aminet.


 Elena (elena at elenadomain.it)

 


Contents of util/wb/PowerIconsSrc.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  162     431  37.6% -lh5- 4cbf Jun  3  2004 PowerIconsSrc/Common.h
[generic]                  664     792  83.8% -lh5- 9769 Apr 12  2004 PowerIconsSrc/Common.h.info
[generic]                 1085    3427  31.7% -lh5- 4015 Apr 12  2004 PowerIconsSrc/DDO_New.c
[generic]                  596     711  83.8% -lh5- d7ab Apr 12  2004 PowerIconsSrc/DDO_New.c.info
[generic]                 2666    9124  29.2% -lh5- a25c May 10  2004 PowerIconsSrc/DIS2_New.c
[generic]                  596     711  83.8% -lh5- 953a Apr 12  2004 PowerIconsSrc/DIS2_New.c.info
[generic]                 2332    8010  29.1% -lh5- 62ba May 10  2004 PowerIconsSrc/DIS_New.c
[generic]                  598     711  84.1% -lh5- 4cf0 Apr 12  2004 PowerIconsSrc/DIS_New.c.info
[generic]                  499    1125  44.4% -lh5- 3325 Apr 12  2004 PowerIconsSrc/FDO_New.c
[generic]                  595     711  83.7% -lh5- 157e Apr 12  2004 PowerIconsSrc/FDO_New.c.info
[generic]                  411     826  49.8% -lh5- 1187 Apr 12  2004 PowerIconsSrc/GenAlgoSelect.c
[generic]                  594     711  83.5% -lh5- 82e8 Apr 12  2004 PowerIconsSrc/GenAlgoSelect.c.info
[generic]                  587    1349  43.5% -lh5- 5721 Apr 12  2004 PowerIconsSrc/GenTemplate.c
[generic]                  597     711  84.0% -lh5- 2da6 Apr 12  2004 PowerIconsSrc/GenTemplate.c.info
[generic]                 2379    7230  32.9% -lh5- 8387 Oct 24  2003 PowerIconsSrc/GetPNGPicture.c
[generic]                  598     711  84.1% -lh5- 0cad Apr 12  2004 PowerIconsSrc/GetPNGPicture.c.info
[generic]                  575    1476  39.0% -lh5- b185 Nov 20  2003 PowerIconsSrc/GIR_New.c
[generic]                  595     711  83.7% -lh5- 7fcd Apr 12  2004 PowerIconsSrc/GIR_New.c.info
[generic]                 2114    6809  31.0% -lh5- 72d6 Feb 22  2004 PowerIconsSrc/GIT_New.c
[generic]                  596     711  83.8% -lh5- 78da Apr 12  2004 PowerIconsSrc/GIT_New.c.info
[generic]                 1531    5581  27.4% -lh5- 6cce Apr 12  2004 PowerIconsSrc/ICTRL_New.c
[generic]                  598     711  84.1% -lh5- e1ed Apr 12  2004 PowerIconsSrc/ICTRL_New.c.info
[generic]                 1385    3545  39.1% -lh5- dafc Apr 12  2004 PowerIconsSrc/InjectPNG.c
[generic]                  597     711  84.0% -lh5- 3382 Apr 12  2004 PowerIconsSrc/InjectPNG.c.info
[generic]                 1379   11887  11.6% -lh5- b8b5 May 10  2004 PowerIconsSrc/Labels.c
[generic]                  594     711  83.5% -lh5- cbb9 Apr 12  2004 PowerIconsSrc/Labels.c.info
[generic]                 3187    9428  33.8% -lh5- a99b May 30  2004 PowerIconsSrc/LoadPngIcon.c
[generic]                  599     711  84.2% -lh5- feb3 Apr 12  2004 PowerIconsSrc/LoadPngIcon.c.info
[generic]                 3188    9379  34.0% -lh5- 6764 Apr 12  2004 PowerIconsSrc/LoadPngIconOld.c
[generic]                  592     711  83.3% -lh5- 57a4 May 30  2004 PowerIconsSrc/LoadPngIconOld.c.info
[generic]                 2216    6745  32.9% -lh5- 4b7b Apr 12  2004 PowerIconsSrc/Main.c
[generic]                  611     802  76.2% -lh5- cfd9 Apr 12  2004 PowerIconsSrc/Main.c.info
[generic]                  559    2904  19.2% -lh5- 8192 Apr 12  2004 PowerIconsSrc/Makefile68K
[generic]                 2361    5019  47.0% -lh5- 3793 Apr 12  2004 PowerIconsSrc/Makefile68K.info
[generic]                 1022    2619  39.0% -lh5- b0c9 Nov 20  2003 PowerIconsSrc/PIT_New.c
[generic]                  596     711  83.8% -lh5- db8a Apr 12  2004 PowerIconsSrc/PIT_New.c.info
[generic]                  245     569  43.1% -lh5- 7d44 Mar 25  2004 PowerIconsSrc/PlanarPic.c
[generic]                  595     711  83.7% -lh5- 6cb9 Apr 12  2004 PowerIconsSrc/PlanarPic.c.info
[generic]                  923    2178  42.4% -lh5- 8551 Oct 14  2003 PowerIconsSrc/PngIcon.h
[generic]                  650     766  84.9% -lh5- 6281 Apr 12  2004 PowerIconsSrc/PngIcon.h.info
[generic]                39842   82740  48.2% -lh5- 6981 Jun  3  2004 PowerIconsSrc/PowerIcons
[generic]                 1254    4021  31.2% -lh5- 0d37 Jun  3  2004 PowerIconsSrc/PowerIcons.h
[generic]                  668     792  84.3% -lh5- eb7d Apr 12  2004 PowerIconsSrc/PowerIcons.h.info
[generic]                 1255    3070  40.9% -lh5- e31c Apr 12  2004 PowerIconsSrc/PrepIcon.c
[generic]                  599     711  84.2% -lh5- b31a Apr 12  2004 PowerIconsSrc/PrepIcon.c.info
[generic]                 2850    5791  49.2% -lh5- 227a Jul  4  1980 PowerIconsSrc/README.txt
[generic]                 1684    4788  35.2% -lh5- 642c Jul  4  1980 PowerIconsSrc/README.txt.info
[generic]                 3372    8569  39.4% -lh5- f1a7 Oct 23  2003 PowerIconsSrc/SavePngIcon.c
[generic]                  597     711  84.0% -lh5- eb8a Apr 12  2004 PowerIconsSrc/SavePngIcon.c.info
[generic]                  206     508  40.6% -lh5- f846 Nov 14  2003 PowerIconsSrc/vc.config.68k
[generic]                  767    3018  25.4% -lh5- 73d4 Apr 12  2004 PowerIconsSrc/vc.config.68k.info
[generic]                  800    6173  13.0% -lh5- 7bbe Apr 12  2004 PowerIconsSrc/WriteAlphaArray.c
[generic]                  596     711  83.8% -lh5- 44c2 Apr 12  2004 PowerIconsSrc/WriteAlphaArray.c.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        53 files   96757  235000  41.2%            Jul  4 19:36

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