diff options
-rw-r--r-- | Source/GetViewModes.S | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/Source/GetViewModes.S b/Source/GetViewModes.S index bf5b4b9..ff98a82 100644 --- a/Source/GetViewModes.S +++ b/Source/GetViewModes.S @@ -1,11 +1,11 @@ ** -** $Id: GetViewModes.S,v 1.1 92/05/12 22:26:49 chris Exp $ -** $Revision: 1.1 $ +** $Id: GetViewModes.S,v 21.1 92/05/15 03:22:48 chris Exp $ +** $Revision: 21.1 $ ** ** $Filename: GetViewModes.S $ ** $Author: chris $ ** $Release: 19.1 $ -** $Date: 92/05/12 22:26:49 $ +** $Date: 92/05/15 03:22:48 $ ** ** iff.library/IFFL_GetViewModes ** @@ -106,8 +106,36 @@ Ende: movea.l (SP)+,a2 rts - *** ViewModes berechnen, A0 = struct BitMapHeader - *** Diese Routine wird auch von SaveClip() benutzt + +*****i* iff.library/CalcViewModes ******************************************* +* +* NAME +* CalcViewModes() -- Calculate Amiga-specific ViewModes from a BMHD +* +* SYNOPSIS +* viewmodes = CalcViewModes( bmhd ) +* D0 A0 +* +* ULONG CalcViewModes( struct IFFL_BMHD ) +* +* FUNCTION +* Tries to calculate the viewmodes for a CAMG chunk by looking at +* the bmh_Width, bmh_Height and bmh_Depth entries of a bmhd. +* This is not always satisfactory, but we're stuck with it. +* +* INPUTS +* bmhd - BitMapHeader describing the picture's dimensions +* +* RESULT +* viewmodes - ULONG containing the view modes (LACE, HIRES) +* +* BUGS +* too many to mention +* +* SEE ALSO +* IFFL_GetViewModes(), IFFL_SaveClip() +* +***************************************************************************** CalcViewModes: moveq.l #0,d0 ; D0 : ViewModes |