Yes, that's a better approach. You need to (try to) adapt to the IO unit as received, because it can be renegotiated at any Tversion.

On 13 April 2012 11:37, <cinap_lenrek@gmx.de> wrote:
thats basicly what we did too, plus that if dy <= 0, we
split the scanline that fits in the display buffer and
recursively call unloadimage() on the rest instead of
failing.