all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* xdisp.c minor fix.
@ 2003-03-12 19:50 David Ponce
  0 siblings, 0 replies; only message in thread
From: David Ponce @ 2003-03-12 19:50 UTC (permalink / raw)
  Cc: emacs-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-12 19:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12 19:50 xdisp.c minor fix David Ponce

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.