Mercurial > emacs
changeset 32754:99a644bb452d
(VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a font
can't be exactly centered, it errs up rather than down.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 23 Oct 2000 03:14:04 +0000 |
parents | 401f661f11d4 |
children | c134606d5784 |
files | src/xterm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Sun Oct 22 19:08:26 2000 +0000 +++ b/src/xterm.c Mon Oct 23 03:14:04 2000 +0000 @@ -1777,7 +1777,7 @@ #define VCENTER_BASELINE_OFFSET(FONT, F) \ ((FONT)->descent \ - + (FRAME_LINE_HEIGHT ((F)) - FONT_HEIGHT ((FONT))) / 2 \ + + (FRAME_LINE_HEIGHT ((F)) + 1 - FONT_HEIGHT ((FONT))) / 2 \ - ((F)->output_data.x->font->descent - (F)->output_data.x->baseline_offset)) /* Produce glyphs/get display metrics for the display element IT is