From owner-freebsd-ports Thu Feb 17 20: 0:10 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7CFC437B64D for ; Thu, 17 Feb 2000 20:00:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA89507; Thu, 17 Feb 2000 20:00:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7268037B972 for ; Thu, 17 Feb 2000 19:52:19 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA88987; Thu, 17 Feb 2000 19:52:19 -0800 (PST) (envelope-from nobody@FreeBSD.org) Message-Id: <200002180352.TAA88987@freefall.freebsd.org> Date: Thu, 17 Feb 2000 19:52:19 -0800 (PST) From: sigehiro@ee.oit.ac.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/16800: xwdtopnm can not work well on my 16bits/pixel display. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16800 >Category: ports >Synopsis: xwdtopnm can not work well on my 16bits/pixel display. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 17 20:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Yuji Shigehiro >Release: FreeBSD 3.3-RELEASE >Organization: Osaka Institute of Technology, Japan >Environment: FreeBSD kaken98.ee.oit.ac.jp 3.3-RELEASE FreeBSD 3.3-RELEASE #3: Thu Jan 6 16:47:54 JST 2000 sigehiro@kaken98.ee.oit.ac.jp:/usr/src/sys/compile/PRO-400L i386 >Description: The following command % xwd | xwdtopnm > foo.ppm generates an illegal PPM file on my machine with 16 bits/pixel display (XF86_Mach64.xtt). >How-To-Repeat: On the X Window System (XF86_Mach64.xtt) with 16 bits/pixel display, execute following command % xwd | xwdtopnm > foo.ppm and display the image `foo.ppm'. >Fix: In `/usr/ports/graphics/netpbm/work/netpbm/pnm/xwdtopnm.c', 16 bits/pixel data format is (maybe) considered to be `0BBBBBGGGGGRRRRR' (see lines 94--114 of xwdtopnm.c). However, the format is (maybe) `RRRRRGGGGGGBBBBB' on my computer, and there may exist other formats on other computers. Please modify the source code correctly ? (on the basis of variables `{red,green,blue}_mask' in the source code.) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message