From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [9fans] Drawterm on MacOS X; weird colormap? Content-Type: multipart/mixed; boundary=Apple-Mail-1--1039536910 Mime-Version: 1.0 (Apple Message framework v482) From: Moroo Jun To: 9fans@cse.psu.edu In-Reply-To: <200302221702.h1MH2OM21041@augusta.math.psu.edu> Message-Id: Date: Sun, 23 Feb 2003 16:58:59 +0900 Topicbox-Message-UUID: 6ea71c7c-eacb-11e9-9e20-41e7f4b1d025 --Apple-Mail-1--1039536910 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed > it, it comes back. I do notice that, with your fix, when I try to page > an image (say, a jpg), the RGB values are again mixed up. When I try > page with the older version of drawterm, page displays the jpg > correctly. I made new patch. Please apply this for original drawterm. But this patch has 'sam' problem yet. Also 'page' pop up menu. --Apple-Mail-1--1039536910 Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="patch" *** drawtermorg/devip-unix.c Wed May 22 14:57:07 2002 --- drawterm/devip-unix.c Fri Feb 21 22:56:49 2003 *************** *** 4,9 **** --- 4,10 ---- #include #include #include + #include #include "lib9.h" #include "sys.h" *** drawtermorg/mkfile Sat Apr 27 01:51:09 2002 --- drawterm/mkfile Fri Feb 21 22:55:13 2003 *************** *** 1,5 **** #CONF=FreeBSD ! #CONF=FreeBSD-power # MAC OSX #CONF=Irix #CONF=Linux #CONF=OSF1 --- 1,5 ---- #CONF=FreeBSD ! CONF=FreeBSD-power # MAC OSX #CONF=Irix #CONF=Linux #CONF=OSF1 *** drawtermorg/libmemdraw/draw.c Tue Jul 25 10:23:47 2000 --- drawterm/libmemdraw/draw.c Sun Feb 23 16:46:02 2003 *************** *** 1994,2000 **** if(val == DNofill) return; ! bits = _rgbatoimg(i, val); switch(i->depth){ case 24: /* 24-bit images suck */ for(y=i->r.min.y; yr.max.y; y++) --- 1994,2007 ---- if(val == DNofill) return; ! if (i->depth == 32) { ! bits = val; ! bits &= 0x00FF00FF; ! bits |= (val << 16) & 0xFF000000; ! bits |= (val >> 16) & 0x0000FF00; ! } else { ! bits = _rgbatoimg(i, val); ! } switch(i->depth){ case 24: /* 24-bit images suck */ for(y=i->r.min.y; yr.max.y; y++) --Apple-Mail-1--1039536910--