From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: Re: XBM images sometimes inverted on Windows Date: Sat, 01 Dec 2007 13:36:42 +0000 Message-ID: <4751636A.7060806@gnu.org> References: <20071130124226.GA28554@janet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196516254 12459 80.91.229.12 (1 Dec 2007 13:37:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 13:37:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Neil Roberts Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 14:37:43 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IySXO-0004oN-Ry for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Dec 2007 14:37:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IySX8-00011L-Nr for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Dec 2007 08:37:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IySX2-0000z8-VU for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 08:37:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IySWy-0000t8-3F for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 08:37:20 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IySWx-0000sw-BH for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 08:37:15 -0500 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IySWw-0007tO-Vc for bug-gnu-emacs@gnu.org; Sat, 01 Dec 2007 08:37:15 -0500 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 5E8B5513AB; Sat, 1 Dec 2007 13:37:14 +0000 (GMT) User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <20071130124226.GA28554@janet> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17103 Archived-At: Neil Roberts wrote: > Hi, > > I've noticed that when running Emacs under Windows, if you create an > XBM image where the :data keyword is set to a string containing the > actual bits of the bitmap then the foreground and background colours > are swapped. > > (defconst smiley-data '(#x00 #x00 #x24 #x00 #x00 #x24 #x18 #x00)) > > > (defun smiley-from-xbm-bytes () > ;; Make an image using the bytes directly in a string > (list 'image :type 'xbm :ascent 100 :width 8 :height 8 > :data (apply 'string smiley-data))) > Does this result in a valid xbm image? There is no width and height specified, and the data is not in the textual format that an xbm is supposed to be in.