summaryrefslogtreecommitdiff
path: root/Source/DecodePic.S
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>1992-10-12 20:40:00 +0000
committerChristian A. Weber <chris@gna.ch>1992-10-12 20:40:00 +0000
commit4f318af8445dc55f6873832ff6f19c80e1aff0ec (patch)
tree209141500cc2b743d86d4e061e3f06f148737be8 /Source/DecodePic.S
parent75926bd841c3f96ecd7f43048fea81b2bd4d0a74 (diff)
downloadiff-library-4f318af8445dc55f6873832ff6f19c80e1aff0ec.tar.gz
iff-library-4f318af8445dc55f6873832ff6f19c80e1aff0ec.tar.bz2
iff-library-4f318af8445dc55f6873832ff6f19c80e1aff0ec.zip
Autodocs geändert wegen Überschreiben von zu kleinen BitMaps
Diffstat (limited to 'Source/DecodePic.S')
-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
*