From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: More enhancements to fringe bitmaps. Date: 14 Feb 2004 01:39:27 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076715976 10505 80.91.224.253 (13 Feb 2004 23:46:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2004 23:46:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Feb 14 00:46:08 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Arn0a-00039f-00 for ; Sat, 14 Feb 2004 00:46:08 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Arn0a-0000pW-00 for ; Sat, 14 Feb 2004 00:46:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArmvY-0006eh-Qq for emacs-devel@quimby.gnus.org; Fri, 13 Feb 2004 18:40:56 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Armum-0006WW-66 for emacs-devel@gnu.org; Fri, 13 Feb 2004 18:40:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ArmuE-0006Jh-UX for emacs-devel@gnu.org; Fri, 13 Feb 2004 18:40:06 -0500 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArmuE-0006JT-BL for emacs-devel@gnu.org; Fri, 13 Feb 2004 18:39:34 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 5AF4D5EE2A7; Sat, 14 Feb 2004 00:39:32 +0100 (CET) Original-To: YAMAMOTO Mitsuharu In-Reply-To: Original-Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19929 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19929 YAMAMOTO Mitsuharu writes: > >>>>> On 11 Feb 2004 12:17:24 +0100, storm@cua.dk (Kim F. Storm) said: > > > Supposing that fb->bits was word aligned and 16 bits per row, what > > would the code for drawing the bitmap look like then? > > Just like the following: Functions mac_create_bitmap_from_bitmap_data > and mac_free_bitmap are no longer used for drawing fringe bitmaps. > The function mac_draw_bitmap additionally takes width and height > as arguments. Thanks for you help and suggestions. I have just installed changes that allows fringe bitmaps to be up to 16 bits wide, and properly support any width between 1 and 16 on X. I believe I have made the necessary changes to the W32 and MAC ports (including not doing bit-swapping on MAC_OS). As we previously discussed, the code is simpler on both W32 and MAC after these change, but as usual I cannot test whether it works. Vi fans may want to try this... (require 'fringe) (define-fringe-bitmap [#b000000000 #b000100100 #b001010100 #b001001000] nil 9 'top empty-line-fringe-bitmap) (setq indicate-empty-lines t) -- Kim F. Storm http://www.cua.dk