summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/DecodePic.S19
1 files changed, 13 insertions, 6 deletions
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
*