# HG changeset patch # User Miles Bader # Date 972270844 0 # Node ID 99a644bb452da72843eeb6bf2b3b8ce33eaa8145 # Parent 401f661f11d475d6cf3defceb07752b957ce9da9 (VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a font can't be exactly centered, it errs up rather than down. diff -r 401f661f11d4 -r 99a644bb452d src/xterm.c --- 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