From 4f318af8445dc55f6873832ff6f19c80e1aff0ec Mon Sep 17 00:00:00 2001 From: "Christian A. Weber" Date: Mon, 12 Oct 1992 20:40:00 +0000 Subject: =?UTF-8?q?Autodocs=20ge=C3=A4ndert=20wegen=20=C3=9Cberschreiben?= =?UTF-8?q?=20von=20zu=20kleinen=20BitMaps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/DecodePic.S | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'Source/DecodePic.S') diff --git a/Source/DecodePic.S b/Source/DecodePic.S index baae610..e238047 100644 --- a/Source/DecodePic.S +++ b/Source/DecodePic.S @@ -1,11 +1,11 @@ ** -** $Id: DecodePic.S,v 21.1 92/05/15 03:21:35 chris Exp $ -** $Revision: 21.1 $ +** $Id: DecodePic.S,v 21.2 92/05/18 02:16:02 chris Exp $ +** $Revision: 21.2 $ ** ** $Filename: DecodePic.S $ ** $Author: chris $ ** $Release: 19.1 $ -** $Date: 92/05/15 03:21:35 $ +** $Date: 92/05/18 02:16:02 $ ** ** iff.library/IFFL_DecodePic ** @@ -40,9 +40,9 @@ * * FUNCTION * Decodes and decompresses a picture into the user supplied BitMap. -* If the picture is larger than your BitMap's planes, it will be -* truncated. If your BitMap is larger than the picture, the picture -* will be drawn into the top left corner of your BitMap. +* If the picture is higher than your BitMap, it will be truncated. +* If your BitMap is larger than the picture, the picture will be +* drawn into the top left corner of your BitMap. * If the picture has less planes than the BitMap, the unused planes * are NOT touched by this routine, so you may wish to clear them * before calling IFFL_DecodePic(). If the picture has more planes @@ -60,6 +60,13 @@ * Non-zero if successful, zero if error. Call IFFL_IFFError() to * know the reason of the failure * +* BUGS +* If the picture is wider than your BitMap, one line of innocent +* memory will be overwritten at the end of each bitplane. You can +* avoid this by allocating a few bytes more for each plane. +* Normally, you allocate your BitMap after inspecting the BMHD +* chunk, so this should not be a problem. +* * NOTE * This routine needs at least 650 bytes of stack space * -- cgit v1.2.3