From 9fcc3237e1d6c77624ecc6419bc9e24c8554c129 Mon Sep 17 00:00:00 2001 From: "Christian A. Weber" Date: Mon, 18 May 1992 02:18:15 +0000 Subject: =?UTF-8?q?Autodocs=20f=C3=BCr=20CalcViewModes()=20gemacht=20(inte?= =?UTF-8?q?rnal).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/GetViewModes.S | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) (limited to 'Source') 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 -- cgit v1.2.3