TWAINLib 2/3/95


Bug fixes
---------

(1) Get swi names right
(2) Call TWerror
(3) get correct memory address



On the subject of allocating memory.
------------------------------------

TWalloc is called then ->

You should then look at the location at offset 4 in the data block
if this contains 0, then TWAIN will do a native transfer, if
it contains 2, then it will do a memory transfer.

For a native transfer
r0 is the amount of memory to allocate. You should add some overhead
to this, and then create a sprite area. Fill in the address of the
sprite area at offset 52. (the overhead is just to allow for sprite
headers etc.)

For a memory transfer
r0 is the amount of memory to allocate.
Allocate the memory or as much as you can. Fill in the address of the
memory at offset 52 and put the length at offset 56.


When TWtrans is called, for native transfers only the 'last'
parameter is valid. This is because you should have a complete sprite
in your sprite area.


Conclusion
----------
Bad news really. All the real drivers will do memory xfers, the demo one
won't. So you can't test memory xfers...




