unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Ponce <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: xdisp.c minor fix.
Date: Wed, 12 Mar 2003 20:50:09 +0100	[thread overview]
Message-ID: <3E6F8F71.805@wanadoo.fr> (raw)

Hi Kim,

With your following change, compilation of xdisp.c failed on Windows.

2003-03-12  Kim F. Storm  <storm@cua.dk>

         The following changes consolidates the fringe handling from
         xterm.c, w32term.c, and macterm.c into xdisp.c.

         * xdisp.c: Consolidate fringe handling code here.
         (left_bits, right_bits, continued_bits, continuation_bits)
         (ov_bits, zv_bits): Define fringe bitmaps.
         (fringe_bitmaps): New array holding fringe bitmaps.
         (draw_fringe_bitmap): Draw a specific bitmap; call display
         specific drawing routine via rif->draw_fringe_bitmap.
         (draw_row_fringe_bitmaps): Generic replacement for
         x_draw_row_fringe_bitmaps; all callers changed.
         (compute_fringe_widths): Generic replacement for
         x_compute_fringe_widths; all callers changed.

I applied this patch that solved the problem:

Index: src/xdisp.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v
retrieving revision 1.809
diff -c -r1.809 xdisp.c
*** src/xdisp.c	12 Mar 2003 12:11:00 -0000	1.809
--- src/xdisp.c	12 Mar 2003 19:34:30 -0000
***************
*** 8352,8358 ****
         int left_wid = left_fringe_width >= 0 ? left_fringe_width : 
-left_fringe_width;
         int right_wid = right_fringe_width >= 0 ? right_fringe_width : 
-right_fringe_width;
         int conf_wid = left_wid + right_wid;
!       int font_wid = FONT_WIDTH (f->output_data.x->font);
         int cols = (left_wid + right_wid + font_wid-1) / font_wid;
         int real_wid = cols * font_wid;
         if (left_wid && right_wid)
--- 8352,8358 ----
         int left_wid = left_fringe_width >= 0 ? left_fringe_width : 
-left_fringe_width;
         int right_wid = right_fringe_width >= 0 ? right_fringe_width : 
-right_fringe_width;
         int conf_wid = left_wid + right_wid;
!       int font_wid = FONT_WIDTH ( FRAME_FONT (f) );
         int cols = (left_wid + right_wid + font_wid-1) / font_wid;
         int real_wid = cols * font_wid;
         if (left_wid && right_wid)


Hope it helps.
David

                 reply	other threads:[~2003-03-12 19:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E6F8F71.805@wanadoo.fr \
    --to=david.ponce@wanadoo.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).