From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8b62a49a07acc191d15aae4679b6d418@rei2.9hal> Date: Fri, 13 Apr 2012 12:37:30 +0200 From: cinap_lenrek@gmx.de To: 9fans@9fans.net In-Reply-To: <7303776683083dfe4eda468cf6676c9c@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] page fit to window does not work on large jpegs Topicbox-Message-UUID: 765b7358-ead7-11e9-9d60-3106f5b1d025 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. the same thing is done with loadimage. its just writememimage() wich uses a constant for the chunksize because it doesnt have a bufsize negotiated from 9p i/o unit by libdraw. -- cinap