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

util/sys/ModeP.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Improves BestModeID() on ECS/AGA, CyberGfx, Picasso
Author:Andreas_Kleinert at t-online.de
Uploader:Andreas_Kleinert t-online de
Type:util/sys
Architecture:m68k-amigaos
Date:1997-02-18
Download:http://aminet.net/util/sys/ModeP.lha - View contents
Readme:http://aminet.net/util/sys/ModeP.readme
Downloads:643

 Due to various problem with graphic.library's BestModeID() function,
 people began to complain about odd resolutions generated by
 several subclass "picture" datatypes, which use this function, as
 well as any image viewers, which did not work-around that for
 themselves.

 This patch tries to improve this for AGA systems by patching
 the more simple cases only. As long as

      BIDTAG_DIPFMustHave
      BIDTAG_DIPFMustNotHave
      BIDTAG_ViewPort
      BIDTAG_MonitorID
      BIDTAG_SourceID
      BIDTAG_RedBits
      BIDTAG_BlueBits
      BIDTAG_GreenBits

 are *not* supplied, the new patch will take place, otherwise the
 old BestModeID() function will take over.

 The patch works as follows:

   - get width, height, depth requirements
   - check, whether CyberGraphX is installed
     (if it is, then pass over to the corresponding CyberGraphX function),
     else check, whether PicassoII or Picasso96 Emu (vilintuisup.library)
     is installed (if it is, then pass over to the corresponding vilintuisup
     function)
   - after that, check if the ModeID is still 0L (LowRes) or whether
     one of the emus did return an unavailable or INVALID_ID
     and begin our own mode id generation (ECS/AGA sensitive)
   - return the mode id

 Request for Discussion and Comments:
 ------------------------------------
 Note, that the plain ECS/AGA mode id generation is quite trivial and may
 still be improveable, thus this patch includes its source code, and anyone
 who likes, may improve it and publish the results.

 ---
 All mentioned trademarks are subjects to their owners.


Contents of util/sys/ModeP.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2740    4564  60.0% -lh5- 9b89 Feb 18  1997 ModeP/ModeP
[generic]                 2192    8014  27.4% -lh5- 30e0 Feb 18  1997 ModeP/ModeP.c
[generic]                  391     835  46.8% -lh5- 02e6 Feb 18  1997 ModeP/ModeP.info
[generic]                 1069    1856  57.6% -lh5- c557 Feb 18  1997 ModeP/ModeP.o
[generic]                  869    1744  49.8% -lh5- fb8b Feb 18  1997 ModeP/ModeP.readme
[generic]                  180     245  73.5% -lh5- b695 Feb 18  1997 ModeP/SCOPTIONS
[generic]                   98     154  63.6% -lh5- b7c3 Feb 18  1997 ModeP/smakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         7 files    7539   17412  43.3%            Feb 18  1997

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