Hangar.La tienda de software del Amiga

ObtainPens 1.0

A better MWB-Color-Daemon (e.g. for NewIcons / MUI)

Short:        A better MWB-Color-Daemon (e.g. for NewIcons / MUI)
Author:       ALeX Kazik <akazik@TechFak.Uni-Bielefeld.DE>
Uploader:     ALeX Kazik <akazik TechFak Uni-Bielefeld DE>
Type:         util/wb
Version:      1.0
Requires:     OS3  (supports PatchControl)
Architecture: m68k-amigaos

Description:
¯¯¯¯¯¯¯¯¯¯¯¯
   This patch allocates the Colors 4-7 from the WB with the MWB-Colors,
   like other Daemons. But this patch has some advantages:
   · The OpenScreenTagList-Function and not the OpenWorkBench-Function is
     patched. This means that the Pens also allocated, if the WB wont be
     opened by OpenWorkBench(), e.g. LoadWB / LockPubScreen() don't use
     OpenWorkBench().
   · The pens, which will allocated, are SHARED. That means that all
     programms can use this pens. (ForcePens, my model, reserved the pens
     EXCLUSIVE, the result is that the pens can only used by ForcePens)
   · If PatchControl is running, you can remove the daemon by sending a
     break (CTRL-C) to ObtainPens.
   · The programm is really small. Exact 2304 Bytes.

Requiements:
¯¯¯¯¯¯¯¯¯¯¯¯
   OS3

Installation:
¯¯¯¯¯¯¯¯¯¯¯¯¯
   Simply, use the Install-Script, OR:
   · Copy ObtainPens to C: (or where you want).
   · Add a line, like the following, to the user-startup.
     run <NIL: >NIL: C:ObtainPens
   · The line should be at the beginning of the user-startup, because
     it is possible, that ObtainsPens will be active, after LoadWB started,
     that results in no colors, bad look.

Usage:
¯¯¯¯¯¯
   Install it.
   The programm will return immedatly with error code 20, if you
   don't have OS3. The programm NEVER produces an output.

Colors:
¯¯¯¯¯¯¯
   The colors, which will be allocated, are the Standard MWB-Colors.
   If you want to use others, there a two ways:
   1) Change the sourecode.
   2) Take a hex editor, and change the programm.
   In general: The colors are 32bit-left-alligned, for the color 123 (0x7B)
   you have to write 0x7B7B7B7B. Beginning with line 20 in the source, and
   Offset 2082 (0x822) in the programm, you'll find 4×4 longwords.
   The first specifies the pen number, the next three the colors (red,
   green blue). That will be repeated for the next 3 pens.

Shareware:
¯¯¯¯¯¯¯¯¯¯
   This programm is CARD/MAILWARE. All rigths reserved.

Disclaimer:
¯¯¯¯¯¯¯¯¯¯¯¯
   I gurantee for nothing.

Author:
¯¯¯¯¯¯¯

                        Alex  Kazik
                    Stapenhorststr.  81
                      33615 Bielefeld
                          Germany

         E-Mail: akazik@TechFak.Uni-Bielefeld.DE






                                                ###### ##      ####  ##   ##
                                               ##   ## ##     ##  ##  ## ##
                                               #### ## ##     ######   ###
                                               ## #### ##     ##      ## ##
                                               ##   ## ######  ####  ##   ##

Gratis

Descargar 11 KB

Desde el Amiga: abre Hangar y busca ObtainPens.

AutorALeX Kazik <akazik@TechFak.Uni-Bielefeld.DE>
Categoríautil/wb
Tamaño11 KB
Param68k-amigaos
NecesitaOS3 (supports PatchControl)
OrigenAminet