From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 13 Apr 2012 08:13:50 -0400 To: 9fans@9fans.net Message-ID: <7303776683083dfe4eda468cf6676c9c@brasstown.quanstro.net> In-Reply-To: References: <41f0995beb4bcd47a1b8cdcc41a14e13@rei2.9hal> 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: 76573cb6-ead7-11e9-9d60-3106f5b1d025 On Fri Apr 13 03:40:36 EDT 2012, charles.forsyth@gmail.com wrote: > ... graphics > > On 13 April 2012 08:38, Charles Forsyth wrote: > > > a reasonable minimum for except for the fact it's not. even something like a droid x takes too wide a picture. (>3200 pixels wide.) this is the change i made, which should give you 64k on a terminal, and drawterm, if you change the iounit. ; diff -c `{yesterday -n2 unloadimage.c} unloadimage.c /n/dump/2012/0411/sys/src/libdraw/unloadimage.c:28,34 - unloadimage.c:28,34 werrstr("unloadimage: %r"); return -1; } - dy = 8000/bpl; + dy = i->display->bufsize/bpl; if(dy <= 0){ werrstr("unloadimage: image too wide"); return -1; - erik